Merge "Fix problems with early ending of Sequencer"
This commit is contained in:
@@ -669,6 +669,7 @@ public class Animator<T> extends Animatable {
|
||||
setCurrentPlayTime(getCurrentPlayTime());
|
||||
}
|
||||
mPlayingState = STOPPED;
|
||||
mStartedDelay = false;
|
||||
sPendingAnimations.add(this);
|
||||
if (sAnimationHandler == null) {
|
||||
sAnimationHandler = new AnimationHandler();
|
||||
|
||||
@@ -233,6 +233,10 @@ public final class Sequencer extends Animatable {
|
||||
@Override
|
||||
public void end() {
|
||||
mCanceled = true;
|
||||
if (mSortedNodes.size() != mNodes.size()) {
|
||||
// hasn't been started yet - sort the nodes now, then end them
|
||||
sortNodes();
|
||||
}
|
||||
if (mSortedNodes.size() > 0) {
|
||||
for (Node node : mSortedNodes) {
|
||||
node.animation.end();
|
||||
|
||||
Reference in New Issue
Block a user