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

Commit 119b28fd authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Fix missing background where multiple KeyButtonViews are rendered in the same window"

parents f1937d8e 74cad9cf
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -461,14 +461,8 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
    @Override
    public void draw(Canvas canvas) {
        if (mHasOvalBg) {
            canvas.save();
            int cx = (getLeft() + getRight()) / 2;
            int cy = (getTop() + getBottom()) / 2;
            canvas.translate(cx, cy);
            int d = Math.min(getWidth(), getHeight());
            int r = d / 2;
            canvas.drawOval(-r, -r, r, r, mOvalBgPaint);
            canvas.restore();
            canvas.drawOval(0, 0, d, d, mOvalBgPaint);
        }
        super.draw(canvas);
    }