Merge "Fix crash when changing display cutout" into rvc-dev am: 2dbd18574d
Change-Id: I795cfe4f242d7544c58c60aecaae712faa91925c
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user