diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-09-13 13:04:25 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-09-13 16:25:46 +0300 |
commit | 193087b986853926800f71abceaa276b5a4b57f9 (patch) | |
tree | 697b8675e3c239628422ceac6d29ce8e34c0ed3c /android/src/com/mapswithme/maps/search/SearchEngine.java | |
parent | 506ff4fca4ac7d6100fa4275e7cd8381c20cd1a8 (diff) |
[search] Improved the search speed for the cian project.
Diffstat (limited to 'android/src/com/mapswithme/maps/search/SearchEngine.java')
-rw-r--r-- | android/src/com/mapswithme/maps/search/SearchEngine.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/search/SearchEngine.java b/android/src/com/mapswithme/maps/search/SearchEngine.java index 85f199bd27..69f3bb5914 100644 --- a/android/src/com/mapswithme/maps/search/SearchEngine.java +++ b/android/src/com/mapswithme/maps/search/SearchEngine.java @@ -144,12 +144,18 @@ public enum SearchEngine implements NativeSearchListener, Framework.nativeClearApiPoints(); } - public static void cancelSearch() + public static void cancelInteractiveSearch() { sSavedQuery = ""; nativeCancelInteractiveSearch(); } + public static void cancelEverywhereSearch() + { + sSavedQuery = ""; + nativeCancelEverywhereSearch(); + } + public static void showResult(int index) { sSavedQuery = ""; @@ -183,6 +189,8 @@ public enum SearchEngine implements NativeSearchListener, public static native void nativeCancelInteractiveSearch(); + public static native void nativeCancelEverywhereSearch(); + /** * @return all existing hotel types */ |