Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb918b35 authored by Jon Miranda's avatar Jon Miranda
Browse files

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

Bug: 31432372
Change-Id: I93c7ee661597f934402f464c4f0182a8fad38d39
parent 80e6aa4b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
        }