diff options
-rw-r--r-- | res/xml/development_prefs.xml | 5 | ||||
-rw-r--r-- | src/com/android/settings/DevelopmentSettings.java | 26 |
2 files changed, 0 insertions, 31 deletions
diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml index 14c829a..01f3ba5 100644 --- a/res/xml/development_prefs.xml +++ b/res/xml/development_prefs.xml @@ -60,11 +60,6 @@ android:summary="@string/runningservices_settings_summary" android:fragment="com.android.settings.applications.RunningServices" /> - <SwitchPreference - android:key="tuner_ui" - android:persistent="false" - android:title="@string/system_ui_settings" /> - <PreferenceCategory android:key="debug_debugging_category" android:title="@string/debug_debugging_category"> diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index f20728a..4a4c51d 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -101,9 +101,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment */ public static final String PREF_SHOW = "show"; - private static final ComponentName SYSUI_TUNER = new ComponentName("com.android.systemui", - "com.android.systemui.tuner.TunerActivity"); - private static final String ENABLE_ADB = "enable_adb"; private static final String CLEAR_ADB_KEYS = "clear_adb_keys"; private static final String ENABLE_TERMINAL = "enable_terminal"; @@ -270,8 +267,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment private Dialog mAdbKeysDialog; private boolean mUnavailable; - private SwitchPreference mTunerUiPref; - @Override protected int getMetricsCategory() { return MetricsLogger.DEVELOPMENT; @@ -407,8 +402,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment mAllPrefs.add(mShowAllANRs); mResetSwitchPrefs.add(mShowAllANRs); - mTunerUiPref = findAndInitSwitchPref(TUNER_UI_KEY); - Preference hdcpChecking = findPreference(HDCP_CHECKING_KEY); if (hdcpChecking != null) { mAllPrefs.add(hdcpChecking); @@ -608,7 +601,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment updateMobileDataAlwaysOnOptions(); updateSimulateColorSpace(); updateUSBAudioOptions(); - updateTweakUi(); } private void resetDangerousOptions() { @@ -1153,21 +1145,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } } - private void updateTweakUi() { - updateSwitchPreference(mTunerUiPref, getActivity().getPackageManager() - .getComponentEnabledSetting(SYSUI_TUNER) - == PackageManager.COMPONENT_ENABLED_STATE_ENABLED); - mTunerUiPref.setOnPreferenceChangeListener(this); - } - - private void writeTweakUi(Object newValue) { - Boolean enabled = (Boolean) newValue; - getActivity().getPackageManager().setComponentEnabledSetting(SYSUI_TUNER, - enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED - : PackageManager.COMPONENT_ENABLED_STATE_DISABLED, - PackageManager.DONT_KILL_APP); - } - private void updateUSBAudioOptions() { updateSwitchPreference(mUSBAudio, Settings.Secure.getInt(getContentResolver(), Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED, 0) != 0); @@ -1766,9 +1743,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } else if (preference == mSimulateColorSpace) { writeSimulateColorSpace(newValue); return true; - } else if (preference == mTunerUiPref) { - writeTweakUi(newValue); - return true; } return false; } |