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

Commit aeb283f9 authored by wilsonshih's avatar wilsonshih
Browse files

Prevent receive extra callbacks from AnimatorListener.

There will receive another onAnimationStart/onAnimationEnd callback
when calling ValueAnimator#end if the animation is not running, which
is not necessary if the animation was finished already.

Bug: 195736656
Test: atest SplashscreenTests
Change-Id: Ifbbf2f799e3e69624626b16e08f40b562fe483a8
parent 517f6aed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ public class SplashscreenIconDrawableFactory {

        @Override
        public void stopAnimation() {
            if (mIconAnimator != null) {
            if (mIconAnimator != null && mIconAnimator.isRunning()) {
                mIconAnimator.end();
            }
        }