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

Commit 5b860602 authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Fix drawing sequence from using deprecated Canvas APIs.

Bug: 77286317
Test: marlin-userdebug reboots successfully
Change-Id: I72688931f29ff9db6bb1e39af9d313be7df33a03
parent 9ed9aa93
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -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);
    }