Fix drawing sequence from using deprecated Canvas APIs.
Bug: 77286317 Test: marlin-userdebug reboots successfully Change-Id: I72688931f29ff9db6bb1e39af9d313be7df33a03
This commit is contained in:
@@ -79,17 +79,25 @@ class StrictModeFlash {
|
||||
}
|
||||
|
||||
// Top
|
||||
c.clipRect(new Rect(0, 0, dw, mThickness), Region.Op.REPLACE);
|
||||
c.save();
|
||||
c.clipRect(new Rect(0, 0, dw, mThickness));
|
||||
c.drawColor(Color.RED);
|
||||
c.restore();
|
||||
// Left
|
||||
c.clipRect(new Rect(0, 0, mThickness, dh), Region.Op.REPLACE);
|
||||
c.save();
|
||||
c.clipRect(new Rect(0, 0, mThickness, dh));
|
||||
c.drawColor(Color.RED);
|
||||
c.restore();
|
||||
// Right
|
||||
c.clipRect(new Rect(dw - mThickness, 0, dw, dh), Region.Op.REPLACE);
|
||||
c.save();
|
||||
c.clipRect(new Rect(dw - mThickness, 0, dw, dh));
|
||||
c.drawColor(Color.RED);
|
||||
c.restore();
|
||||
// Bottom
|
||||
c.clipRect(new Rect(0, dh - mThickness, dw, dh), Region.Op.REPLACE);
|
||||
c.save();
|
||||
c.clipRect(new Rect(0, dh - mThickness, dw, dh));
|
||||
c.drawColor(Color.RED);
|
||||
c.restore();
|
||||
|
||||
mSurface.unlockCanvasAndPost(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user