summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-04-27 15:16:25 +0100
committerBjorn Bringert <bringert@android.com>2009-04-27 15:16:25 +0100
commita9d5be1e5f49c272aa445c5c66e07df81d8bfc27 (patch)
treebc79a90bb48fa1850018e29a89cef7eb64fd30ca /src/com
parentd842cee7c287f8704f44f6622ac03d38c0f682c9 (diff)
downloadpackages_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.java2
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