diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-06-11 16:18:39 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-06-12 11:16:20 -0700 |
commit | 7779d62308b87ca26e3be47df836893f6f7693ec (patch) | |
tree | 15927028a921ac04a931ecf3edb119a39054cef5 /src/com/android/launcher3/Utilities.java | |
parent | 2d0fc8dccd49a630a1e4a18e6b6b773d7c7bde71 (diff) | |
download | android_packages_apps_Trebuchet-7779d62308b87ca26e3be47df836893f6f7693ec.tar.gz android_packages_apps_Trebuchet-7779d62308b87ca26e3be47df836893f6f7693ec.tar.bz2 android_packages_apps_Trebuchet-7779d62308b87ca26e3be47df836893f6f7693ec.zip |
Using content provider to update launcher settings
> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences
Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 0cd980cb2..0f52cba2b 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -92,17 +92,14 @@ public final class Utilities { private static boolean sForceEnableRotation = isPropertyEnabled(FORCE_ENABLE_ROTATION_PROPERTY); public static final String ALLOW_ROTATION_PREFERENCE_KEY = "pref_allowRotation"; - public static final String SCREEN_ROTATION_SETTING_INTENT = - "come.android.launcher3.SCREEN_ORIENTATION_PREF_CHANGED"; - public static final String SCREEN_ROTATION_SETTING_EXTRA = "screenRotationPref"; public static boolean isPropertyEnabled(String propertyName) { return Log.isLoggable(propertyName, Log.VERBOSE); } public static boolean isAllowRotationPrefEnabled(Context context) { - SharedPreferences sharedPrefs = context.getSharedPreferences(LauncherFiles.ROTATION_PREF_FILE, - Context.MODE_MULTI_PROCESS); + SharedPreferences sharedPrefs = context.getSharedPreferences( + LauncherAppState.getSharedPreferencesKey(), Context.MODE_PRIVATE); boolean allowRotationPref = sharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, false); return sForceEnableRotation || allowRotationPref; } |