commit | beaf5d919fa7986b96968d2282458aca9dc05b13 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Fri Jan 26 11:03:54 2018 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Wed Jan 31 19:26:28 2018 -0500 |
tree | de91acda541e710cee3a287e030e069d8b5965be | |
parent | ce9bcc4977a8f7eca00674dd5292f191e3ca98fa [diff] |
Fixes for animationEnd in AnimatedImageDrawable Bug: 63908092 Test: Manual If the animation is running on the render thread, post a message (in JNI) to call the listener. Use a weak reference in the native listener so that it does not create a cycle. Don't add a listener if it's already in the list. Remove the native listener when the Java listeners are all removed. Call onAnimationEnd when the animation is stopped manually. Change-Id: I5dc070089fb1cf399ac3316292592f614f2738f0