From 581999f462e967550789de90de23cbb677b70a69 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Tue, 15 Sep 2015 18:25:49 +0300 Subject: [PATCH] Android: use new secret commands --- android/src/com/mapswithme/maps/search/SearchFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/search/SearchFragment.java b/android/src/com/mapswithme/maps/search/SearchFragment.java index 74be1e8781..55b0daa0af 100644 --- a/android/src/com/mapswithme/maps/search/SearchFragment.java +++ b/android/src/com/mapswithme/maps/search/SearchFragment.java @@ -290,16 +290,16 @@ public class SearchFragment extends BaseMwmRecyclerFragment implements View.OnCl // Hook for shell command on change map style final boolean isDark = str.equals("mapstyle:dark") || str.equals("?dark"); final boolean isLight = isDark ? false : str.equals("mapstyle:light") || str.equals("?light"); - final boolean isClear = isDark || isLight ? false : str.equals("?newstyle"); + final boolean isOld = isDark || isLight ? false : str.equals("?oldstyle"); - if (!isDark && !isLight && !isClear) + if (!isDark && !isLight && !isOld) return false; // close Search panel hideSearch(); // change map style for the Map activity - final int mapStyle = isDark ? Framework.MAP_STYLE_DARK : (isClear ? Framework.MAP_STYLE_CLEAR : Framework.MAP_STYLE_LIGHT); + final int mapStyle = isOld ? Framework.MAP_STYLE_LIGHT : (isDark ? Framework.MAP_STYLE_DARK : Framework.MAP_STYLE_CLEAR); MwmActivity.setMapStyle(getActivity(), mapStyle); return true;