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

am: 17844f2257

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

View File

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