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

Commit e28dbba7 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Check for auto-rotation when initializing RecentsOrientedState

* When folding/unfolding we destroy listeners because
the view gets torn down but the auto-rotate setting gets
updated before launcher has a chance to re-init the listeners
* Force update once when initializing (hopefully this doesn't
cause test issues by creating an additional binder call..)

Fixes: 228765701
Test: Bug no longer repros
Change-Id: Ide0e8907f97d6985813257b299104ac7cfdf959a
parent cdcbebb7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ public class RecentsOrientedState implements
    private void initMultipleOrientationListeners() {
        mSharedPrefs.registerOnSharedPreferenceChangeListener(this);
        mSettingsCache.register(ROTATION_SETTING_URI, mRotationChangeListener);
        updateAutoRotateSetting();
    }

    private void destroyMultipleOrientationListeners() {