diff options
author | Narayan Kamath <narayan@google.com> | 2011-06-28 12:07:18 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2011-06-28 15:30:49 +0100 |
commit | ee69ff4eaee9342843d5f25338288865dda2d36a (patch) | |
tree | f7a35649b1a716ed03a48014b6b12a6f00c06641 /core/java/android/provider/Settings.java | |
parent | 7ae28d321684ea71fa41b2dc4caca14c6d964984 (diff) | |
download | frameworks_base-ee69ff4eaee9342843d5f25338288865dda2d36a.zip frameworks_base-ee69ff4eaee9342843d5f25338288865dda2d36a.tar.gz frameworks_base-ee69ff4eaee9342843d5f25338288865dda2d36a.tar.bz2 |
Make the system global search provider a user setting.
Also, modify Searchables / SearchManagerService to
honour the setting when it's set.
Change-Id: Ia63351fff4fe28ee79ac8b9e30fdb8edc43f5534
Diffstat (limited to 'core/java/android/provider/Settings.java')
-rw-r--r-- | core/java/android/provider/Settings.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index afff7e2..65babc2 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -20,6 +20,7 @@ package android.provider; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; +import android.app.SearchManager; import android.content.ComponentName; import android.content.ContentResolver; import android.content.ContentValues; @@ -3490,6 +3491,18 @@ public final class Settings { "sms_outgoing_check_max_count"; /** + * The global search provider chosen by the user (if multiple global + * search providers are installed). This will be the provider returned + * by {@link SearchManager#getGlobalSearchActivity()} if it's still + * installed. This setting is stored as a flattened component name as + * per {@link ComponentName#flattenToString()}. + * + * @hide + */ + public static final String SEARCH_GLOBAL_SEARCH_ACTIVITY = + "search_global_search_activity"; + + /** * The number of promoted sources in GlobalSearch. * @hide */ |