Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8254e217 authored by Alex Chau's avatar Alex Chau Committed by Automerger Merge Worker
Browse files

Skip onSharedPreferenceChanged if mIgnoreAutoRotateSettings is true in...

Skip onSharedPreferenceChanged if mIgnoreAutoRotateSettings is true in RotationHelper am: 19d43e05

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18349767



Change-Id: I266757fc61df721a18256ee385e86cd2032bb360
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ba21057e 19d43e05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener,

    @Override
    public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) {
        if (mDestroyed) return;
        if (mDestroyed || mIgnoreAutoRotateSettings) return;
        boolean wasRotationEnabled = mHomeRotationEnabled;
        mHomeRotationEnabled = mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY,
                getAllowRotationDefaultValue(mActivity.getDeviceProfile()));