summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DevelopmentSettings.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-10-18 23:23:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-18 23:23:08 -0700
commit5a740ab1b9d5757d684f6a798932f0b4729cc9a7 (patch)
tree9fc285235cafbf109f87e901eb3855452a554378 /src/com/android/settings/DevelopmentSettings.java
parent8b98246559c7422e507458a63c8dfc2783bd0afc (diff)
parent860eceba2c1e5aea13eafb0d60b64abe9f7c700d (diff)
downloadpackages_apps_settings-5a740ab1b9d5757d684f6a798932f0b4729cc9a7.zip
packages_apps_settings-5a740ab1b9d5757d684f6a798932f0b4729cc9a7.tar.gz
packages_apps_settings-5a740ab1b9d5757d684f6a798932f0b4729cc9a7.tar.bz2
Merge "More migration to Global settings." into jb-mr1-dev
Diffstat (limited to 'src/com/android/settings/DevelopmentSettings.java')
-rw-r--r--src/com/android/settings/DevelopmentSettings.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java
index a98230f..e490aa6 100644
--- a/src/com/android/settings/DevelopmentSettings.java
+++ b/src/com/android/settings/DevelopmentSettings.java
@@ -489,10 +489,10 @@ public class DevelopmentSettings extends PreferenceFragment
}
private void updateDebuggerOptions() {
- mDebugApp = Settings.System.getString(
- getActivity().getContentResolver(), Settings.System.DEBUG_APP);
- updateCheckBox(mWaitForDebugger, Settings.System.getInt(
- getActivity().getContentResolver(), Settings.System.WAIT_FOR_DEBUGGER, 0) != 0);
+ mDebugApp = Settings.Global.getString(
+ getActivity().getContentResolver(), Settings.Global.DEBUG_APP);
+ updateCheckBox(mWaitForDebugger, Settings.Global.getInt(
+ getActivity().getContentResolver(), Settings.Global.WAIT_FOR_DEBUGGER, 0) != 0);
if (mDebugApp != null && mDebugApp.length() > 0) {
String label;
try {
@@ -727,14 +727,14 @@ public class DevelopmentSettings extends PreferenceFragment
}
private void updateCpuUsageOptions() {
- updateCheckBox(mShowCpuUsage, Settings.System.getInt(getActivity().getContentResolver(),
- Settings.System.SHOW_PROCESSES, 0) != 0);
+ updateCheckBox(mShowCpuUsage, Settings.Global.getInt(getActivity().getContentResolver(),
+ Settings.Global.SHOW_PROCESSES, 0) != 0);
}
private void writeCpuUsageOptions() {
boolean value = mShowCpuUsage.isChecked();
- Settings.System.putInt(getActivity().getContentResolver(),
- Settings.System.SHOW_PROCESSES, value ? 1 : 0);
+ Settings.Global.putInt(getActivity().getContentResolver(),
+ Settings.Global.SHOW_PROCESSES, value ? 1 : 0);
Intent service = (new Intent())
.setClassName("com.android.systemui", "com.android.systemui.LoadAverageService");
if (value) {
@@ -753,8 +753,8 @@ public class DevelopmentSettings extends PreferenceFragment
}
private void updateImmediatelyDestroyActivitiesOptions() {
- updateCheckBox(mImmediatelyDestroyActivities, Settings.System.getInt(
- getActivity().getContentResolver(), Settings.System.ALWAYS_FINISH_ACTIVITIES, 0) != 0);
+ updateCheckBox(mImmediatelyDestroyActivities, Settings.Global.getInt(
+ getActivity().getContentResolver(), Settings.Global.ALWAYS_FINISH_ACTIVITIES, 0) != 0);
}
private void updateAnimationScaleValue(int which, ListPreference pref) {