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

Commit 5ece5a7c authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed that an icon could become invisible

A icon could be invisible because we were not aborting the animation
in certain cases. This should be fixed now.

Change-Id: I8caf35034704a0df3d205205086c4622b60e0da9
Fixes: 35385932
Test: runtest systemui
parent 9f5ce935
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -467,10 +467,13 @@ public class StatusBarIconView extends AnimatedImageView {
        boolean runnableAdded = false;
        if (visibleState != mVisibleState) {
            mVisibleState = visibleState;
            if (animate) {
            if (mIconAppearAnimator != null) {
                mIconAppearAnimator.cancel();
            }
            if (mDotAnimator != null) {
                mDotAnimator.cancel();
            }
            if (animate) {
                float targetAmount = 0.0f;
                Interpolator interpolator = Interpolators.FAST_OUT_LINEAR_IN;
                if (visibleState == STATE_ICON) {
@@ -494,9 +497,6 @@ public class StatusBarIconView extends AnimatedImageView {
                    runnableAdded = true;
                }

                if (mDotAnimator != null) {
                    mDotAnimator.cancel();
                }
                targetAmount = visibleState == STATE_ICON ? 2.0f : 0.0f;
                interpolator = Interpolators.FAST_OUT_LINEAR_IN;
                if (visibleState == STATE_DOT) {