summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Prefs.java
diff options
context:
space:
mode:
authorDave Mankoff <mankoff@google.com>2020-01-10 17:50:34 -0500
committerDave Mankoff <mankoff@google.com>2020-02-25 15:46:28 -0500
commit3c6aaab6c402ecd2c455382aaee4f042241d960d (patch)
tree34d5074adeae7e22a85eae5efa1af94501c50885 /packages/SystemUI/src/com/android/systemui/Prefs.java
parent9577cd78ff03eafa880e327f72341b1eb1c12865 (diff)
Make PhoneStatusBarPolicy injectable.
Add DateFormatUtil that makes DateFormat methods non-static, (is24HourFormat specifically). PhoneStatusBarPolicy no longer needs a context. Bug: 147505562 Test: atest SystemUITests Change-Id: I7b272441971f5a74f2736cd545498b8b4077fca6
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/Prefs.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java
index 10ae3434daaa..f0a82c519d48 100644
--- a/packages/SystemUI/src/com/android/systemui/Prefs.java
+++ b/packages/SystemUI/src/com/android/systemui/Prefs.java
@@ -164,7 +164,7 @@ public final class Prefs {
get(context).unregisterOnSharedPreferenceChangeListener(listener);
}
- private static SharedPreferences get(Context context) {
+ public static SharedPreferences get(Context context) {
return context.getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE);
}
}