summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-09-20 12:40:57 +0100
committerBjorn Bringert <bringert@android.com>2010-09-20 13:16:25 +0100
commitf4d359d3c83d0e84319603ecc0f4dce120708612 (patch)
treeeb1f5aaf1e8d3d28d3b42807d436d7b84a16d029
parent4e01203746710646227470390d4a9f7fb52c6238 (diff)
downloadpackages_apps_settings-f4d359d3c83d0e84319603ecc0f4dce120708612.zip
packages_apps_settings-f4d359d3c83d0e84319603ecc0f4dce120708612.tar.gz
packages_apps_settings-f4d359d3c83d0e84319603ecc0f4dce120708612.tar.bz2
Remove Search from the system Settings app DO NOT MERGE
The search settings acitivity lives in the system search app, which is build-dependent. Also, since the Browser no longer looks at the SHOW_WEB_SUGGESTIONS system preference, none of the search settings affect the behavior of any other platform apps. The search settings will henceforth only be available from within the search app (e.g. QuickSearchBox). Bug: 3017365 Change-Id: I08f3979cd8cdc0742efbc49be95aa59753c94c0d
-rwxr-xr-xres/drawable-hdpi/ic_settings_search.pngbin1630 -> 0 bytes
-rwxr-xr-xres/drawable-mdpi/ic_settings_search.pngbin920 -> 0 bytes
-rw-r--r--res/xml/settings.xml15
-rw-r--r--src/com/android/settings/Settings.java2
4 files changed, 0 insertions, 17 deletions
diff --git a/res/drawable-hdpi/ic_settings_search.png b/res/drawable-hdpi/ic_settings_search.png
deleted file mode 100755
index ec07f37..0000000
--- a/res/drawable-hdpi/ic_settings_search.png
+++ /dev/null
Binary files differ
diff --git a/res/drawable-mdpi/ic_settings_search.png b/res/drawable-mdpi/ic_settings_search.png
deleted file mode 100755
index 8e13de3..0000000
--- a/res/drawable-mdpi/ic_settings_search.png
+++ /dev/null
Binary files differ
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 0f19442..8c92870 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -118,21 +118,6 @@
android:targetClass="com.android.settings.deviceinfo.Memory" />
</com.android.settings.IconPreferenceScreen>
- <!-- Search.
- The settings activity will ensure that this is resolved to an
- activity on the system image, otherwise it will remove this
- preference.
- The intent action is the same as
- android.app.SearchManager.INTENT_ACTION_SEARCH_SETTINGS.
- -->
-
- <com.android.settings.IconPreferenceScreen
- settings:icon="@drawable/ic_settings_search"
- android:title="@string/search_settings"
- android:key="search_settings">
- <intent android:action="android.search.action.SEARCH_SETTINGS" />
- </com.android.settings.IconPreferenceScreen>
-
<!-- Language -->
<com.android.settings.IconPreferenceScreen
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 5309cf5..fd87fa6 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -27,7 +27,6 @@ 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";
private static final String KEY_DOCK_SETTINGS = "dock_settings";
@Override
@@ -40,7 +39,6 @@ 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);
Preference dockSettings = parent.findPreference(KEY_DOCK_SETTINGS);
if (getResources().getBoolean(R.bool.has_dock_settings) == false && dockSettings != null) {