diff options
author | Robert Ly <robertly@google.com> | 2012-02-22 09:29:15 -0800 |
---|---|---|
committer | Robert Ly <robertly@google.com> | 2012-02-22 16:28:13 -0800 |
commit | 9366ce81dbaa1c954911ef1c8d5791bb4a69d89c (patch) | |
tree | 109eb5216d3dfc3858ea7915fbce5b6f8260199c /graphics/java | |
parent | 197fe26940022be75384f4038dd789f446d33122 (diff) | |
download | frameworks_base-9366ce81dbaa1c954911ef1c8d5791bb4a69d89c.zip frameworks_base-9366ce81dbaa1c954911ef1c8d5791bb4a69d89c.tar.gz frameworks_base-9366ce81dbaa1c954911ef1c8d5791bb4a69d89c.tar.bz2 |
fix bug 5942522
Change-Id: Ice16e63b42d5e8c89994d0844f62adaefc8a92a1
Diffstat (limited to 'graphics/java')
-rw-r--r-- | graphics/java/android/graphics/drawable/AnimationDrawable.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/AnimationDrawable.java b/graphics/java/android/graphics/drawable/AnimationDrawable.java index 07de074..35343be 100644 --- a/graphics/java/android/graphics/drawable/AnimationDrawable.java +++ b/graphics/java/android/graphics/drawable/AnimationDrawable.java @@ -102,7 +102,12 @@ public class AnimationDrawable extends DrawableContainer implements Runnable, An /** * <p>Starts the animation, looping if necessary. This method has no effect - * if the animation is running.</p> + * if the animation is running. Do not call this in the {@link android.app.Activity#onCreate} + * method of your activity, because the {@link android.graphics.drawable.AnimationDrawable} is + * not yet fully attached to the window. If you want to play + * the animation immediately, without requiring interaction, then you might want to call it + * from the {@link android.app.Activity#onWindowFocusChanged} method in your activity, + * which will get called when Android brings your window into focus.</p> * * @see #isRunning() * @see #stop() |