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

Commit 13ec0f2b authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev

am: 5fc8f7d0

Change-Id: I1ca302446a3bff3c1f3096f353ca8b081e13e816
parents 7a2e4a84 5fc8f7d0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -239,7 +239,11 @@ public class PipManager implements BasePipManager {
            }
        }

        loadConfigurationsAndApply(mContext.getResources().getConfiguration());
        // Initialize the last orientation and apply the current configuration
        Configuration initialConfig = mContext.getResources().getConfiguration();
        mLastOrientation = initialConfig.orientation;
        loadConfigurationsAndApply(initialConfig);

        mMediaSessionManager =
                (MediaSessionManager) mContext.getSystemService(Context.MEDIA_SESSION_SERVICE);