summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-06-22 11:37:03 +0100
committerBjorn Bringert <bringert@android.com>2009-06-22 13:51:35 +0100
commit97325db8565ad503b86d9a0f602b2d001b5cee13 (patch)
treeeb7b6bdfccbb7cd3eba01e848dc2ddb083602726
parenta68ca641e61f85ab9fffa7b782f693b7305df66c (diff)
downloadframeworks_base-97325db8565ad503b86d9a0f602b2d001b5cee13.zip
frameworks_base-97325db8565ad503b86d9a0f602b2d001b5cee13.tar.gz
frameworks_base-97325db8565ad503b86d9a0f602b2d001b5cee13.tar.bz2
Add non-static version of SearchManager.getSuggestions().
-rw-r--r--core/java/android/app/SearchManager.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/app/SearchManager.java b/core/java/android/app/SearchManager.java
index eb80400..4c868d4 100644
--- a/core/java/android/app/SearchManager.java
+++ b/core/java/android/app/SearchManager.java
@@ -1804,6 +1804,19 @@ public class SearchManager
}
/**
+ * Gets a cursor with search suggestions.
+ *
+ * @param searchable Information about how to get the suggestions.
+ * @param query The search text entered (so far).
+ * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
+ *
+ * @hide because SearchableInfo is not part of the API.
+ */
+ public Cursor getSuggestions(SearchableInfo searchable, String query) {
+ return getSuggestions(mContext, searchable, query);
+ }
+
+ /**
* Gets a cursor with search suggestions. This method is static so that it can
* be used from non-Activity context.
*