summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar
diff options
context:
space:
mode:
authorAndrew Flynn <flynn@google.com>2015-04-01 14:22:37 -0400
committerAndrew Flynn <flynn@google.com>2015-04-10 09:54:17 -0400
commit82862573bcf246128782b91ea627285c43133a8d (patch)
tree64be6aec55468b5c7f6bb3c347c4c70b70a84c28 /packages/SystemUI/src/com/android/systemui/statusbar
parent4c42bc045daccb293198559334df6fc6232fff6a (diff)
downloadframeworks_base-82862573bcf246128782b91ea627285c43133a8d.zip
frameworks_base-82862573bcf246128782b91ea627285c43133a8d.tar.gz
frameworks_base-82862573bcf246128782b91ea627285c43133a8d.tar.bz2
Consolidate SystemUI SharedPreferences.
Makes it easier to use from any place and gets us type-safety. Change-Id: I472e340e8332d9a173335b6f337525d58d801881
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index ad78f6a..974ce41 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -113,6 +113,7 @@ import com.android.systemui.BatteryMeterView;
import com.android.systemui.DemoMode;
import com.android.systemui.EventLogConstants;
import com.android.systemui.EventLogTags;
+import com.android.systemui.Prefs;
import com.android.systemui.R;
import com.android.systemui.doze.DozeHost;
import com.android.systemui.doze.DozeLog;
@@ -2573,8 +2574,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
pw.println("SharedPreferences:");
- for (Map.Entry<String, ?> entry : mContext.getSharedPreferences(mContext.getPackageName(),
- Context.MODE_PRIVATE).getAll().entrySet()) {
+ for (Map.Entry<String, ?> entry : Prefs.getAll(mContext).entrySet()) {
pw.print(" "); pw.print(entry.getKey()); pw.print("="); pw.println(entry.getValue());
}
}