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

Commit b132b476 authored by Leon Scroggins III's avatar Leon Scroggins III Committed by android-build-merger
Browse files

Merge "Update AnimatedImageDrawable docs" into pi-dev am: 6f5e83df

am: 5115645c

Change-Id: I8ba7f7eb28c5a03365c2b8cf79b846fe1f51b5a1
parents 209305e5 5115645c
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -52,8 +52,20 @@ import java.util.ArrayList;
/**
 * {@link Drawable} for drawing animated images (like GIF).
 *
 * <p>The framework handles decoding subsequent frames in another thread and
 * updating when necessary. The drawable will only animate while it is being
 * displayed.</p>
 *
 * <p>Created by {@link ImageDecoder#decodeDrawable}. A user needs to call
 * {@link #start} to start the animation.</p>
 *
 * <p>It can also be defined in XML using the <code>&lt;animated-image></code>
 * element.</p>
 *
 * @attr ref android.R.styleable#AnimatedImageDrawable_src
 * @attr ref android.R.styleable#AnimatedImageDrawable_autoStart
 * @attr ref android.R.styleable#AnimatedImageDrawable_repeatCount
 * @attr ref android.R.styleable#AnimatedImageDrawable_autoMirrored
 */
public class AnimatedImageDrawable extends Drawable implements Animatable2 {
    private int mIntrinsicWidth;
@@ -456,8 +468,8 @@ public class AnimatedImageDrawable extends Drawable implements Animatable2 {
     *  <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>
     *  <p>When the drawable is drawn, starting the animation,
     *  {@link Animatable2.AnimationCallback#onAnimationStart} will be called.</p>
     */
    @Override
    public void start() {