diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-08-21 11:08:24 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-08-21 11:08:24 -0700 |
commit | 21bf5314993fdcf972362d14749e63b4ce054807 (patch) | |
tree | e73fc9043480dfe48e81556809bceb8fc25b103e /WallpaperPicker/src | |
parent | 1666e957d31298d8d913fffed103e9e3410a349e (diff) | |
download | android_packages_apps_Trebuchet-21bf5314993fdcf972362d14749e63b4ce054807.tar.gz android_packages_apps_Trebuchet-21bf5314993fdcf972362d14749e63b4ce054807.tar.bz2 android_packages_apps_Trebuchet-21bf5314993fdcf972362d14749e63b4ce054807.zip |
Removing multi_process access to shared preferences
Change-Id: If802245632c30d4f383013203fb2e0349ebc14fe
Diffstat (limited to 'WallpaperPicker/src')
-rw-r--r-- | WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java index e2c008b4b..c035f19c3 100644 --- a/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java +++ b/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java @@ -1159,11 +1159,10 @@ public class WallpaperPickerActivity extends WallpaperCropActivity { @Override public boolean enableRotation() { - // Check if rotation is enabled for this device. - if (Utilities.isRotationAllowedForDevice(getContext())) - return true; - - // Check if the user has specifically enabled rotation via preferences. - return Utilities.isAllowRotationPrefEnabled(getApplicationContext(), true); + return super.enableRotation() || + getContentResolver().call(LauncherSettings.Settings.CONTENT_URI, + LauncherSettings.Settings.METHOD_GET_BOOLEAN, + Utilities.ALLOW_ROTATION_PREFERENCE_KEY, new Bundle()) + .getBoolean(LauncherSettings.Settings.EXTRA_VALUE); } } |