diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Prefs.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java index 29d2a01..3657cf2 100644 --- a/packages/SystemUI/src/com/android/systemui/Prefs.java +++ b/packages/SystemUI/src/com/android/systemui/Prefs.java @@ -44,6 +44,7 @@ public final class Prefs { }) public @interface Key { String SEARCH_APP_WIDGET_ID = "searchAppWidgetId"; + String SEARCH_APP_WIDGET_PACKAGE = "searchAppWidgetPackage"; String DEBUG_MODE_ENABLED = "debugModeEnabled"; String HOTSPOT_TILE_LAST_USED = "HotspotTileLastUsed"; String COLOR_INVERSION_TILE_LAST_USED = "ColorInversionTileLastUsed"; @@ -80,6 +81,14 @@ public final class Prefs { get(context).edit().putLong(key, value).apply(); } + public static String getString(Context context, @Key String key, String defaultValue) { + return get(context).getString(key, defaultValue); + } + + public static void putString(Context context, @Key String key, String value) { + get(context).edit().putString(key, value).apply(); + } + public static Map<String, ?> getAll(Context context) { return get(context).getAll(); } |