Merge "Avoid entering orientation changing state when seamlessly rotating." into oc-dr1-dev am: 17844f2257

am: 083a84c6ae

Change-Id: I1a00df4be76dbf998eda020ad59c5ce38096857d
This commit is contained in:
Robert Carr
2017-08-07 10:54:59 +00:00
committed by android-build-merger

View File

@@ -1224,8 +1224,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
// TODO(b/62846907): Checking against {@link mLastReportedConfiguration} could be flaky as
// this is not necessarily what the client has processed yet. Find a
// better indicator consistent with the client.
return mOrientationChanging || (isVisible()
&& getConfiguration().orientation != mLastReportedConfiguration.orientation);
return (mOrientationChanging || (isVisible()
&& getConfiguration().orientation != mLastReportedConfiguration.orientation))
&& !mSeamlesslyRotated;
}
void setOrientationChanging(boolean changing) {