diff options
author | Bjorn Bringert <bringert@android.com> | 2009-04-27 15:16:25 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-04-27 15:16:25 +0100 |
commit | a9d5be1e5f49c272aa445c5c66e07df81d8bfc27 (patch) | |
tree | bc79a90bb48fa1850018e29a89cef7eb64fd30ca /src/com | |
parent | d842cee7c287f8704f44f6622ac03d38c0f682c9 (diff) | |
download | packages_apps_settings-a9d5be1e5f49c272aa445c5c66e07df81d8bfc27.zip packages_apps_settings-a9d5be1e5f49c272aa445c5c66e07df81d8bfc27.tar.gz packages_apps_settings-a9d5be1e5f49c272aa445c5c66e07df81d8bfc27.tar.bz2 |
Show Search settings in Settings app.
The Settings app now shows a "Search settings" item,
if there is an activity that handles the Search settings intent.
This conditionally included settings is handled in the same way
as the sync settings.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/Settings.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java index 0c4545e..4f888ff 100644 --- a/src/com/android/settings/Settings.java +++ b/src/com/android/settings/Settings.java @@ -26,6 +26,7 @@ public class Settings extends PreferenceActivity { private static final String KEY_PARENT = "parent"; private static final String KEY_CALL_SETTINGS = "call_settings"; private static final String KEY_SYNC_SETTINGS = "sync_settings"; + private static final String KEY_SEARCH_SETTINGS = "search_settings"; @Override protected void onCreate(Bundle savedInstanceState) { @@ -35,6 +36,7 @@ public class Settings extends PreferenceActivity { PreferenceGroup parent = (PreferenceGroup) findPreference(KEY_PARENT); Utils.updatePreferenceToSpecificActivityOrRemove(this, parent, KEY_SYNC_SETTINGS, 0); + Utils.updatePreferenceToSpecificActivityOrRemove(this, parent, KEY_SEARCH_SETTINGS, 0); } @Override |