Fix #2610: Use dark map theme in night mode (#2611)

This commit is contained in:
Adam Jones 2019-03-16 12:33:15 +00:00 committed by Vivek Maskara
parent 6cbce9d283
commit 0bbfd54465

View file

@ -511,10 +511,11 @@ public class NearbyMapFragment extends DaggerFragment {
*/
private void setupMapView(Bundle savedInstanceState) {
Timber.d("setupMapView called");
boolean isDarkTheme = defaultKvStore.getBoolean("theme", false);
MapboxMapOptions options = new MapboxMapOptions()
.compassGravity(Gravity.BOTTOM | Gravity.LEFT)
.compassMargins(new int[]{12, 0, 0, 24})
.styleUrl(Style.OUTDOORS)
.styleUrl(isDarkTheme ? Style.DARK : Style.OUTDOORS)
.logoEnabled(false)
.attributionEnabled(false)
.camera(new CameraPosition.Builder()