summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson <winsonc@google.com>2016-07-27 13:50:05 -0700
committerWinson <winsonc@google.com>2016-07-27 13:50:05 -0700
commita81f580fb71c3e867ccbdef1d034ab17835318fb (patch)
tree5d8fe3d4ceefeb8a443349625d9b90131b2b52d7 /src
parent8fcdee05bb87fee8085048a27c954626d59dbb9b (diff)
downloadandroid_packages_apps_Trebuchet-a81f580fb71c3e867ccbdef1d034ab17835318fb.tar.gz
android_packages_apps_Trebuchet-a81f580fb71c3e867ccbdef1d034ab17835318fb.tar.bz2
android_packages_apps_Trebuchet-a81f580fb71c3e867ccbdef1d034ab17835318fb.zip
Clearing search query after clearing input text.
Bug: 30435142 Change-Id: I3f00e1339aba46f4ab3cd092e59a94b506179dcf
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsSearchBarController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsSearchBarController.java b/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
index 7746245c1..b965d744f 100644
--- a/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
+++ b/src/com/android/launcher3/allapps/AllAppsSearchBarController.java
@@ -140,10 +140,11 @@ public abstract class AllAppsSearchBarController
* Resets the search bar state.
*/
public void reset() {
- mQuery = null;
unfocusSearchField();
mCb.clearSearchResult();
mInput.setText("");
+ // We need to reset this after we clear the input text
+ mQuery = null;
hideKeyboard();
}