Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev
am: 5fc8f7d08a
Change-Id: I1ca302446a3bff3c1f3096f353ca8b081e13e816
This commit is contained in:
@@ -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