From 03cf64ffe611dc3bdb8377578413b054541a9821 Mon Sep 17 00:00:00 2001 From: Igor Talankin Date: Fri, 31 Dec 2021 17:23:57 +0500 Subject: [PATCH] Fix search reset on sticky show --- .../com/italankin/lnch/feature/home/search/SearchOverlay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java b/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java index 5f3474c9..8c3cd97e 100644 --- a/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java +++ b/launcher/src/main/java/com/italankin/lnch/feature/home/search/SearchOverlay.java @@ -134,6 +134,9 @@ public void focusEditText() { } public void onSearchShown() { + if (searchResultsList.getVisibility() == VISIBLE) { + return; + } boolean showMostUsed = preferences.get(Preferences.SEARCH_SHOW_MOST_USED); if (searchResultsList.getAdapter() == null) { if (!showMostUsed) {