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

This commit is contained in:
TreeHugger Robot
2017-06-05 22:37:02 +00:00
committed by Android (Google) Code Review

View File

@@ -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);