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

Commit bbdc0dfe 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."...

Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev am: 5fc8f7d0
am: 13ec0f2b

Change-Id: I2deb72fbeb7862ce2b6f0a713e2bc4ac45dcff80
parents ec68b46b 13ec0f2b
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);