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:
Winson Chung
2017-06-05 22:47:28 +00:00
committed by android-build-merger

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