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

Commit 46b55fe4 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Fix crash when changing display cutout

Test: manually change cutout
Fixes: 153879862
Change-Id: I7da2f0c010569667450efec255c54602c64f797c
parent adf530fc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -948,7 +948,12 @@ public class ScreenDecorations extends SystemUI implements Tunable {
            int dw = flipped ? lh : lw;
            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();
            transformPhysicalToLogicalCoordinates(mInfo.rotation, dw, dh, m);
            mBoundingPath.transform(m);