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

Commit 9dc158a9 authored by James O'Leary's avatar James O'Leary
Browse files

Fix handles redrawing when not visible

Bug: 137877559
Test: Verify CornerHandleView.onDraw() is no longer called when swiping
along navbar

Change-Id: I10b89fc2d88f93bbbb86bf60db15869d6480a3e2
parent 48e3cfc0
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -107,8 +107,10 @@ public class CornerHandleView extends View {
        mPaint.setColor((int) ArgbEvaluator.getInstance().evaluate(darkIntensity,
        mPaint.setColor((int) ArgbEvaluator.getInstance().evaluate(darkIntensity,
                mLightColor,
                mLightColor,
                mDarkColor));
                mDarkColor));
        if (getVisibility() == VISIBLE) {
            invalidate();
            invalidate();
        }
        }
    }


    @Override
    @Override
    public void onDraw(Canvas canvas) {
    public void onDraw(Canvas canvas) {