Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a99f5d64 authored by Adrian Roos's avatar Adrian Roos
Browse files

Cutout: Fix broken cutout rendering in landscape

Change-Id: I835fd7fa06dfcc0eff0323efe8f2913b9e1239b8
Fixes: 77960411
Test: Simulate cutout, rotate to landscape, verify cutout is still visible.
parent a7579d63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);