commit | bed538edbd9faeda923f0dc5b0eb778418ab0c62 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Wed Feb 21 17:50:07 2018 +0100 |
committer | Adrian Roos <roosa@google.com> | Wed Feb 21 17:50:07 2018 +0100 |
tree | 6ce367576e02b734207a092df19baccfd098fcd2 | |
parent | 78cab5a5961b37d984069697dd0ba684184de6bd [diff] [blame] |
Follow up to Iff58235b5bdfd0d49df259a91b05e54e3864f41c Test: atest PhoneWindowManagerInsetsTest Change-Id: I586d52c025ebab4146e6f03b76e6712fd97af7bf
diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index 473eeda..bd53420 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java
@@ -1205,7 +1205,7 @@ if (rotation == ROTATION_0) { return cutout.computeSafeInsets(mInitialDisplayWidth, mInitialDisplayHeight); } - final boolean rotated = (rotation == ROTATION_90 || mRotation == ROTATION_270); + final boolean rotated = (rotation == ROTATION_90 || rotation == ROTATION_270); final Path bounds = cutout.getBounds().getBoundaryPath(); transformPhysicalToLogicalCoordinates(rotation, mInitialDisplayWidth, mInitialDisplayHeight, mTmpMatrix);