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:
1 parent
bfd6256917
commit
1aaaa2fbb2
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user