OSDN Git Service

Check whether AnimationDrawable is one shot only when visibility changes
authorDoris Liu <tianliu@google.com>
Tue, 1 Sep 2015 23:03:58 +0000 (16:03 -0700)
committerDoris Liu <tianliu@google.com>
Wed, 2 Sep 2015 23:25:37 +0000 (23:25 +0000)
commit084938f2a1b8224bf9ada8a4bc3b48b5cf9275e9
treee70894b2427fe59d9afc0889311b054552dcbcfa
parentbe3b06766a1ed0e8cecb78c98f08dc2c2703a6d8
Check whether AnimationDrawable is one shot only when visibility changes

When AnimationDrawable becomes VISIBLE again, the current behavior is to
start the Drawable from the first frame if it's not running. For one shot
AnimationDrawable, it should start once and stay on the last frame.

Bug: 23725157
Change-Id: I5f3095aa00b07fefe7f992851d4190f268c266b2
graphics/java/android/graphics/drawable/AnimationDrawable.java