OSDN Git Service

Fix disappearing ripple background, treat active ripple separately
authorAlan Viverette <alanv@google.com>
Fri, 29 Aug 2014 03:00:38 +0000 (20:00 -0700)
committerAlan Viverette <alanv@google.com>
Fri, 29 Aug 2014 19:54:59 +0000 (19:54 +0000)
commitfdbb98e56d4668c7bfa8de59c3c438c0cb69a535
tree3dead24dddde879054028fbb82de383552e56e72
parent6a6a8f00946f963191612f64238bd706c2188dd8
Fix disappearing ripple background, treat active ripple separately

There is only a single background, and it did not correctly handle
enter() being called while exit() was busy animating. We now cancel
all animations when starting an enter or exit. Also separates the
active ripple from the list of animating (exiting) ripples.

BUG: 17042060
BUG: 17281011
Change-Id: I4d4e33560867c7c71c1bdb72b17d52d6fbd86f68
graphics/java/android/graphics/drawable/Ripple.java
graphics/java/android/graphics/drawable/RippleBackground.java
graphics/java/android/graphics/drawable/RippleDrawable.java