Loading core/res/res/values/attrs.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5968,6 +5968,9 @@ in the encoded data. Setting this to infinite (-1) will result in the animation repeating as long as it is displayed (once start() is called). --> <attr name="repeatCount"/> <!-- When true, automatically start animating. The default is false, meaning that the animation will not start until start() is called. --> <attr name="autoStart" /> </declare-styleable> <!-- Drawable used to draw bitmaps. --> Loading graphics/java/android/graphics/drawable/AnimatedImageDrawable.java +6 −0 Original line number Diff line number Diff line Loading @@ -261,6 +261,12 @@ public class AnimatedImageDrawable extends Drawable implements Animatable2 { if (repeatCount != REPEAT_UNDEFINED) { this.setRepeatCount(repeatCount); } boolean autoStart = a.getBoolean( R.styleable.AnimatedImageDrawable_autoStart, false); if (autoStart && mState.mNativePtr != 0) { this.start(); } } /** Loading Loading
core/res/res/values/attrs.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5968,6 +5968,9 @@ in the encoded data. Setting this to infinite (-1) will result in the animation repeating as long as it is displayed (once start() is called). --> <attr name="repeatCount"/> <!-- When true, automatically start animating. The default is false, meaning that the animation will not start until start() is called. --> <attr name="autoStart" /> </declare-styleable> <!-- Drawable used to draw bitmaps. --> Loading
graphics/java/android/graphics/drawable/AnimatedImageDrawable.java +6 −0 Original line number Diff line number Diff line Loading @@ -261,6 +261,12 @@ public class AnimatedImageDrawable extends Drawable implements Animatable2 { if (repeatCount != REPEAT_UNDEFINED) { this.setRepeatCount(repeatCount); } boolean autoStart = a.getBoolean( R.styleable.AnimatedImageDrawable_autoStart, false); if (autoStart && mState.mNativePtr != 0) { this.start(); } } /** Loading