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

Commit 905857f1 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix constant redrawing on Keyguard issue." into lmp-dev

parents 0f43bf60 0b75f83f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -156,7 +156,6 @@ public class KeyguardAffordanceView extends ImageView {
        drawBackgroundCircle(canvas);
        drawArrow(canvas);
        canvas.save();
        updateIconColor();
        canvas.scale(mImageScale, mImageScale, getWidth() / 2, getHeight() / 2);
        super.onDraw(canvas);
        canvas.restore();
@@ -267,6 +266,7 @@ public class KeyguardAffordanceView extends ImageView {
        if (!radiusNeedsAnimation) {
            if (mCircleAnimator == null) {
                mCircleRadius = circleRadius;
                updateIconColor();
                invalidate();
                if (nowHidden) {
                    if (mPreviewView != null) {
@@ -323,6 +323,7 @@ public class KeyguardAffordanceView extends ImageView {
            @Override
            public void onAnimationUpdate(ValueAnimator animation) {
                mCircleRadius = (float) animation.getAnimatedValue();
                updateIconColor();
                invalidate();
            }
        });