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

Commit 6823ea49 authored by Doris Liu's avatar Doris Liu Committed by Android Git Automerger
Browse files

am 4b4d4757: Merge "Start AnimationDrawable from the zeroth frame." into mnc-dev

* commit '4b4d4757':
  Start AnimationDrawable from the zeroth frame.
parents 54834f28 4b4d4757
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,9 @@ public class AnimationDrawable extends DrawableContainer implements Runnable, An
        mAnimating = true;
        mAnimating = true;


        if (!isRunning()) {
        if (!isRunning()) {
            run();
            // Start from 0th frame.
            setFrame(0, false, mAnimationState.getChildCount() > 1
                    || !mAnimationState.mOneShot);
        }
        }
    }
    }