Correct recently introduced logic error in seamless rotation detection.
am: e441e7f15f
Change-Id: I3e9bdef49a3749e82dbed82bc230bcaac958608a
This commit is contained in:
@@ -6831,7 +6831,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
final WindowList windows = displayContent.getWindowList();
|
final WindowList windows = displayContent.getWindowList();
|
||||||
|
|
||||||
final int oldRotation = mRotation;
|
final int oldRotation = mRotation;
|
||||||
boolean rotateSeamlessly = mPolicy.shouldRotateSeamlessly(oldRotation, mRotation);
|
int rotation = mPolicy.rotationForOrientationLw(mLastOrientation, mRotation);
|
||||||
|
boolean rotateSeamlessly = mPolicy.shouldRotateSeamlessly(oldRotation, rotation);
|
||||||
|
|
||||||
if (rotateSeamlessly) {
|
if (rotateSeamlessly) {
|
||||||
for (int i = windows.size() - 1; i >= 0; i--) {
|
for (int i = windows.size() - 1; i >= 0; i--) {
|
||||||
@@ -6864,7 +6865,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
// an orientation that has different metrics than it expected.
|
// an orientation that has different metrics than it expected.
|
||||||
// eg. Portrait instead of Landscape.
|
// eg. Portrait instead of Landscape.
|
||||||
|
|
||||||
int rotation = mPolicy.rotationForOrientationLw(mLastOrientation, mRotation);
|
|
||||||
boolean altOrientation = !mPolicy.rotationHasCompatibleMetricsLw(
|
boolean altOrientation = !mPolicy.rotationHasCompatibleMetricsLw(
|
||||||
mLastOrientation, rotation);
|
mLastOrientation, rotation);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user