From 8d9a1f66d9d3dbbd45a56d441a746ec11dba7645 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 18 Oct 2012 15:38:14 -0700 Subject: More migration to Global settings. Bug: 7375796 Change-Id: I3954ce141ad30073896090a28eee743ba15fd736 --- packages/SystemUI/src/com/android/systemui/BootReceiver.java | 2 +- packages/SystemUI/src/com/android/systemui/power/PowerUI.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/SystemUI') diff --git a/packages/SystemUI/src/com/android/systemui/BootReceiver.java b/packages/SystemUI/src/com/android/systemui/BootReceiver.java index de005aa..d3ce30d 100644 --- a/packages/SystemUI/src/com/android/systemui/BootReceiver.java +++ b/packages/SystemUI/src/com/android/systemui/BootReceiver.java @@ -35,7 +35,7 @@ public class BootReceiver extends BroadcastReceiver { try { // Start the load average overlay, if activated ContentResolver res = context.getContentResolver(); - if (Settings.System.getInt(res, Settings.System.SHOW_PROCESSES, 0) != 0) { + if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) { Intent loadavg = new Intent(context, com.android.systemui.LoadAverageService.class); context.startService(loadavg); } diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerUI.java b/packages/SystemUI/src/com/android/systemui/power/PowerUI.java index 07fd0ab..318448e 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerUI.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerUI.java @@ -237,9 +237,9 @@ public class PowerUI extends SystemUI { } final ContentResolver cr = mContext.getContentResolver(); - if (Settings.System.getInt(cr, Settings.System.POWER_SOUNDS_ENABLED, 1) == 1) { - final String soundPath = Settings.System.getString(cr, - Settings.System.LOW_BATTERY_SOUND); + if (Settings.Global.getInt(cr, Settings.Global.POWER_SOUNDS_ENABLED, 1) == 1) { + final String soundPath = Settings.Global.getString(cr, + Settings.Global.LOW_BATTERY_SOUND); if (soundPath != null) { final Uri soundUri = Uri.parse("file://" + soundPath); if (soundUri != null) { -- cgit v1.1