Only reset search field when back key is hit if there is no query.

am: bb918b3532

Change-Id: Icc66e5fcd8686b4280f4e21be8e1e6464cf9d874
This commit is contained in:
Jon Miranda authored and android-build-merger committed 2016-09-19 23:19:29 +00:00
commit d450161a2e
1 file changed
+2 -3
@@ -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;
}