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

Commit 0b75f83f authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix constant redrawing on Keyguard issue.

Change-Id: I48d7d746a6f4e737c0292e9f1d4becc5eb6d6294
parent 7c7bc7f6
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();
            }
        });