mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Check that curLatLng exists before getting Mapbox instance
This commit is contained in:
parent
f40875eb7d
commit
6ce2b7c40e
1 changed files with 5 additions and 3 deletions
|
|
@ -150,9 +150,11 @@ public class NearbyMapFragment extends DaggerFragment {
|
||||||
getActivity());
|
getActivity());
|
||||||
boundaryCoordinates = gson.fromJson(gsonBoundaryCoordinates, gsonBoundaryCoordinatesType);
|
boundaryCoordinates = gson.fromJson(gsonBoundaryCoordinates, gsonBoundaryCoordinatesType);
|
||||||
}
|
}
|
||||||
Mapbox.getInstance(getActivity(),
|
if (curLatLng != null) {
|
||||||
getString(R.string.mapbox_commons_app_token));
|
Mapbox.getInstance(getActivity(),
|
||||||
MapboxTelemetry.getInstance().setTelemetryEnabled(false);
|
getString(R.string.mapbox_commons_app_token));
|
||||||
|
MapboxTelemetry.getInstance().setTelemetryEnabled(false);
|
||||||
|
}
|
||||||
setRetainInstance(true);
|
setRetainInstance(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue