diff options
Diffstat (limited to 'src/com/android/settings/DevelopmentSettings.java')
-rw-r--r-- | src/com/android/settings/DevelopmentSettings.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 6ab0b3c..aa3b99d 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -636,8 +636,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, Settings.Global.ADB_ENABLED, 0) != 0); - mAdbNotify.setChecked(Settings.Secure.getInt(cr, - Settings.Secure.ADB_NOTIFY, 1) != 0); + mAdbNotify.setChecked(CMSettings.Secure.getInt(cr, + CMSettings.Secure.ADB_NOTIFY, 1) != 0); updateAdbOverNetwork(); if (mEnableTerminal != null) { @@ -700,14 +700,14 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } private void writeAdvancedRebootOptions() { - Settings.Secure.putInt(getActivity().getContentResolver(), - Settings.Secure.ADVANCED_REBOOT, + CMSettings.Secure.putInt(getActivity().getContentResolver(), + CMSettings.Secure.ADVANCED_REBOOT, mAdvancedReboot.isChecked() ? 1 : 0); } private void updateAdvancedRebootOptions() { - mAdvancedReboot.setChecked(Settings.Secure.getInt(getActivity().getContentResolver(), - Settings.Secure.ADVANCED_REBOOT, 0) != 0); + mAdvancedReboot.setChecked(CMSettings.Secure.getInt(getActivity().getContentResolver(), + CMSettings.Secure.ADVANCED_REBOOT, 0) != 0); } private void resetDevelopmentShortcutOptions() { @@ -727,8 +727,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } private void updateAdbOverNetwork() { - int port = Settings.Secure.getInt(getActivity().getContentResolver(), - Settings.Secure.ADB_PORT, 0); + int port = CMSettings.Secure.getInt(getActivity().getContentResolver(), + CMSettings.Secure.ADB_PORT, 0); boolean enabled = port > 0; updateSwitchPreference(mAdbOverNetwork, enabled); @@ -860,14 +860,14 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } private void writeKillAppLongpressBackOptions() { - Settings.Secure.putInt(getActivity().getContentResolver(), - Settings.Secure.KILL_APP_LONGPRESS_BACK, + CMSettings.Secure.putInt(getActivity().getContentResolver(), + CMSettings.Secure.KILL_APP_LONGPRESS_BACK, mKillAppLongpressBack.isChecked() ? 1 : 0); } private void updateKillAppLongpressBackOptions() { - mKillAppLongpressBack.setChecked(Settings.Secure.getInt( - getActivity().getContentResolver(), Settings.Secure.KILL_APP_LONGPRESS_BACK, 0) != 0); + mKillAppLongpressBack.setChecked(CMSettings.Secure.getInt( + getActivity().getContentResolver(), CMSettings.Secure.KILL_APP_LONGPRESS_BACK, 0) != 0); } private void updatePasswordSummary() { @@ -1823,8 +1823,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment updateBugreportOptions(); } } else if (preference == mAdbNotify) { - Settings.Secure.putInt(getActivity().getContentResolver(), - Settings.Secure.ADB_NOTIFY, + CMSettings.Secure.putInt(getActivity().getContentResolver(), + CMSettings.Secure.ADB_NOTIFY, mAdbNotify.isChecked() ? 1 : 0); } else if (preference == mAdbOverNetwork) { if (mAdbOverNetwork.isChecked()) { @@ -1839,8 +1839,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment .show(); mAdbTcpDialog.setOnDismissListener(this); } else { - Settings.Secure.putInt(getActivity().getContentResolver(), - Settings.Secure.ADB_PORT, -1); + CMSettings.Secure.putInt(getActivity().getContentResolver(), + CMSettings.Secure.ADB_PORT, -1); updateAdbOverNetwork(); } } else if (preference == mClearAdbKeys) { @@ -2063,8 +2063,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment } } else if (dialog == mAdbTcpDialog) { if (which == DialogInterface.BUTTON_POSITIVE) { - Settings.Secure.putInt(getActivity().getContentResolver(), - Settings.Secure.ADB_PORT, 5555); + CMSettings.Secure.putInt(getActivity().getContentResolver(), + CMSettings.Secure.ADB_PORT, 5555); } } else if (dialog == mAdbKeysDialog) { if (which == DialogInterface.BUTTON_POSITIVE) { |