summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-04-16 16:54:56 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-04-16 16:54:56 -0700
commita32707664f85b77602d1fe45458e92fce1448ce2 (patch)
tree4a647a18915df31082603aec33af1b77f5402270 /src/com/android/settings/dashboard
parent6602d02f57ec7375115da26a42357485ff1a778f (diff)
downloadpackages_apps_Settings-a32707664f85b77602d1fe45458e92fce1448ce2.zip
packages_apps_Settings-a32707664f85b77602d1fe45458e92fce1448ce2.tar.gz
packages_apps_Settings-a32707664f85b77602d1fe45458e92fce1448ce2.tar.bz2
Search - add "live" search results
- now it is possible to have Search results directly when you are typing (and not only when you press on the Search button in the IME) - implement onQueryTextChange(...) - take care about re-runnin the saved query when the app is resumed Change-Id: I021c8a9a95b50dce69ab6dace81eecb2fb188f18
Diffstat (limited to 'src/com/android/settings/dashboard')
-rw-r--r--src/com/android/settings/dashboard/SearchResultsSummary.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/settings/dashboard/SearchResultsSummary.java b/src/com/android/settings/dashboard/SearchResultsSummary.java
index 94f3778..ba357d1 100644
--- a/src/com/android/settings/dashboard/SearchResultsSummary.java
+++ b/src/com/android/settings/dashboard/SearchResultsSummary.java
@@ -151,6 +151,11 @@ public class SearchResultsSummary extends Fragment {
return true;
}
+ public boolean onQueryTextChange(String query) {
+ updateSearchResults(query);
+ return true;
+ }
+
public boolean onClose() {
clearResults();
return false;