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

Commit df2491a4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make AnimatedImageDrawable.start reset"

parents 7db9d221 1996dbb1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -319,7 +319,8 @@ public class AnimatedImageDrawable extends Drawable implements Animatable2 {
    /**
     *  Start the animation.
     *
     *  <p>Does nothing if the animation is already running.
     *  <p>Does nothing if the animation is already running. If the animation is stopped,
     *  this will reset it.</p>
     *
     *  <p>If the animation starts, this will call
     *  {@link Animatable2.AnimationCallback#onAnimationStart}.</p>
+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ bool AnimatedImageDrawable::start() {
        return false;
    }

    // This will trigger a reset.
    mFinished = true;

    mRunning = true;
    return true;
}