Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5fc8f7d08a
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user