From a99f5d6449e0f595c76767812a5a698ebd3b831e Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Mon, 16 Apr 2018 16:03:04 +0200 Subject: [PATCH] Cutout: Fix broken cutout rendering in landscape Change-Id: I835fd7fa06dfcc0eff0323efe8f2913b9e1239b8 Fixes: 77960411 Test: Simulate cutout, rotate to landscape, verify cutout is still visible. --- .../SystemUI/src/com/android/systemui/ScreenDecorations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index 7042d22497e67..72f6cdcfc78b1 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -421,7 +421,7 @@ public class ScreenDecorations extends SystemUI implements Tunable { int dw = flipped ? lh : lw; int dh = flipped ? lw : lh; - mBoundingPath.set(DisplayCutout.pathFromResources(getResources(), lw, lh)); + mBoundingPath.set(DisplayCutout.pathFromResources(getResources(), dw, dh)); Matrix m = new Matrix(); transformPhysicalToLogicalCoordinates(mInfo.rotation, dw, dh, m); mBoundingPath.transform(m);