Launcher3: 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
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
This commit is contained in:
Timi Rautamäki
2021-11-07 11:17:34 +00:00
committed by MrSluffy
parent bfd6256917
commit 1aaaa2fbb2
@@ -132,7 +132,7 @@ public class AllAppsSearchBarController
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;
}