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

Commit 6f6718cc authored by Lucas Dupin's avatar Lucas Dupin Committed by Automerger Merge Worker
Browse files

Merge "Fix crash when changing display cutout" into rvc-dev am: 2dbd1857 am: 79821ddd

Change-Id: I93c63ed6558ee929d17f26f0d5cba6c82657a2a4
parents 6309bbd9 79821ddd
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -948,7 +948,12 @@ public class ScreenDecorations extends SystemUI implements Tunable {
            int dw = flipped ? lh : lw;
            int dw = flipped ? lh : lw;
            int dh = flipped ? lw : lh;
            int dh = flipped ? lw : lh;


            mBoundingPath.set(DisplayCutout.pathFromResources(getResources(), dw, dh));
            Path path = DisplayCutout.pathFromResources(getResources(), dw, dh);
            if (path != null) {
                mBoundingPath.set(path);
            } else {
                mBoundingPath.reset();
            }
            Matrix m = new Matrix();
            Matrix m = new Matrix();
            transformPhysicalToLogicalCoordinates(mInfo.rotation, dw, dh, m);
            transformPhysicalToLogicalCoordinates(mInfo.rotation, dw, dh, m);
            mBoundingPath.transform(m);
            mBoundingPath.transform(m);