diff --git a/android/src/com/mapswithme/maps/Framework.java b/android/src/com/mapswithme/maps/Framework.java index bddef7a50a..8cfba0e79c 100644 --- a/android/src/com/mapswithme/maps/Framework.java +++ b/android/src/com/mapswithme/maps/Framework.java @@ -23,9 +23,8 @@ import java.lang.annotation.RetentionPolicy; */ public class Framework { - public static final int MAP_STYLE_LIGHT = 0; + public static final int MAP_STYLE_CLEAR = 0; public static final int MAP_STYLE_DARK = 1; - public static final int MAP_STYLE_CLEAR = 2; @Retention(RetentionPolicy.SOURCE) @IntDef({ROUTER_TYPE_VEHICLE, ROUTER_TYPE_PEDESTRIAN, ROUTER_TYPE_BICYCLE, ROUTER_TYPE_TAXI}) diff --git a/android/src/com/mapswithme/maps/search/SearchFragment.java b/android/src/com/mapswithme/maps/search/SearchFragment.java index 9b827e8bfb..f46ca25c35 100644 --- a/android/src/com/mapswithme/maps/search/SearchFragment.java +++ b/android/src/com/mapswithme/maps/search/SearchFragment.java @@ -447,7 +447,7 @@ public class SearchFragment extends BaseMwmFragment hideSearch(); // change map style for the Map activity - final int mapStyle = isOld ? Framework.MAP_STYLE_LIGHT : (isDark ? Framework.MAP_STYLE_DARK : Framework.MAP_STYLE_CLEAR); + final int mapStyle = isDark ? Framework.MAP_STYLE_DARK : Framework.MAP_STYLE_CLEAR; Framework.nativeSetMapStyle(mapStyle); return true; diff --git a/map/framework.cpp b/map/framework.cpp index 1cce5b23d4..901c77308e 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1837,6 +1837,8 @@ void Framework::OnUpdateGpsTrackPointsCallback(vector