diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/search/SearchFragment.java')
-rw-r--r-- | android/src/com/mapswithme/maps/search/SearchFragment.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/android/src/com/mapswithme/maps/search/SearchFragment.java b/android/src/com/mapswithme/maps/search/SearchFragment.java index 65d37bfc3e..d3aefd7cce 100644 --- a/android/src/com/mapswithme/maps/search/SearchFragment.java +++ b/android/src/com/mapswithme/maps/search/SearchFragment.java @@ -94,10 +94,6 @@ public class SearchFragment extends BaseMwmFragment return; } - // TODO: This code only for demonstration purposes and will be removed soon - if (tryChangeMapStyle(query)) - return; - if (tryRecognizeLoggingCommand(query)) { mSearchAdapter.clear(); @@ -447,27 +443,6 @@ public class SearchFragment extends BaseMwmFragment Utils.navigateToParent(getActivity()); } - // FIXME: This code only for demonstration purposes and will be removed soon - private boolean tryChangeMapStyle(String str) - { - // 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 isOld = isDark || isLight ? false : str.equals("?oldstyle"); - - if (!isDark && !isLight && !isOld) - return false; - - hideSearch(); - - // change map style for the Map activity - final int mapStyle = isDark ? Framework.MAP_STYLE_DARK : Framework.MAP_STYLE_CLEAR; - Framework.nativeSetMapStyle(mapStyle); - - return true; - } - // FIXME END - private boolean tryRecognizeLoggingCommand(@NonNull String str) { if (str.equals("?enableLogging")) |