Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev

This commit is contained in:
George Mount
2016-03-30 22:55:28 +00:00
committed by Android (Google) Code Review

View File

@@ -1113,13 +1113,6 @@ public class ViewPropertyAnimator {
if (mListener != null) {
mListener.onAnimationEnd(animation);
}
if (mAnimatorCleanupMap != null) {
Runnable r = mAnimatorCleanupMap.get(animation);
if (r != null) {
r.run();
}
mAnimatorCleanupMap.remove(animation);
}
if (mAnimatorOnEndMap != null) {
Runnable r = mAnimatorOnEndMap.get(animation);
if (r != null) {
@@ -1127,6 +1120,13 @@ public class ViewPropertyAnimator {
}
mAnimatorOnEndMap.remove(animation);
}
if (mAnimatorCleanupMap != null) {
Runnable r = mAnimatorCleanupMap.get(animation);
if (r != null) {
r.run();
}
mAnimatorCleanupMap.remove(animation);
}
mAnimatorMap.remove(animation);
}