commit | db3a987110905b26c28bb6e0247024a3c1bfeca5 | [log] [tgz] |
---|---|---|
author | Timi Rautamäki <timi.rautamaki@gmail.com> | Sun Nov 07 11:17:34 2021 +0000 |
committer | Alexander Martinz <amartinz@shiftphones.com> | Tue Aug 20 21:34:57 2024 +0200 |
tree | b355904466d9912b6da3b3b4c5cbe98050abab37 | |
parent | 68432bb1542a1fc13e1d56521fbc6cf289b2a0c9 [diff] |
Launcher: Fix all apps view not dismissing The logic was reversed. All apps view should dissmiss on back key when the searchbox is focused but empty and clear when not empty. Change-Id: Id11c991dae6c159b986966f278f0c792993b6abd
diff --git a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java index 4427a49..f94658c 100644 --- a/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java +++ b/src/com/android/launcher3/allapps/search/AllAppsSearchBarController.java
@@ -132,7 +132,7 @@ public boolean onBackKey() { // Only hide the search field if there is no query String query = Utilities.trim(mInput.getEditableText().toString()); - if (query.isEmpty()) { + if (!query.isEmpty()) { reset(); return true; }