summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-06-12 19:36:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-12 19:36:22 +0000
commit51cd50d7f1649f4bdea42483503810735555868e (patch)
tree3f19971b4557c680b16875c08196db16e339df8f /src/com/android/launcher3/Utilities.java
parent2cc170d2115acf3c8d1f84d6e0727d5bb854fc80 (diff)
parent7779d62308b87ca26e3be47df836893f6f7693ec (diff)
downloadandroid_packages_apps_Trebuchet-51cd50d7f1649f4bdea42483503810735555868e.tar.gz
android_packages_apps_Trebuchet-51cd50d7f1649f4bdea42483503810735555868e.tar.bz2
android_packages_apps_Trebuchet-51cd50d7f1649f4bdea42483503810735555868e.zip
Merge "Using content provider to update launcher settings" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java7
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;
}