Merge "Only reset search field when back key is hit if there is no query." into ub-launcher3-calgary-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
6a7ca92f72
@@ -127,10 +127,9 @@ public abstract class AllAppsSearchBarController
|
||||
|
||||
@Override
|
||||
public boolean onBackKey() {
|
||||
// Only hide the search field if there is no query, or if there
|
||||
// are no filtered results
|
||||
// Only hide the search field if there is no query
|
||||
String query = Utilities.trim(mInput.getEditableText().toString());
|
||||
if (query.isEmpty() || mApps.hasNoFilteredResults()) {
|
||||
if (query.isEmpty()) {
|
||||
reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user