summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2016-03-31 20:14:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-03-31 20:14:04 +0000
commit98aa25c2d9c1ac2ebacef7612f5103925ff84d94 (patch)
treee679337035daaee0895e040e42e72cb5184db3bb /core/java
parentfd0bdc4a29e6069e123268981b1af1f12f16030d (diff)
parentf643fb02509302cf882d284cb7c7c8ea167f8c45 (diff)
Merge "Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""" into nyc-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/ViewPropertyAnimator.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/java/android/view/ViewPropertyAnimator.java b/core/java/android/view/ViewPropertyAnimator.java
index f18b7acf64f0..c604234fa577 100644
--- a/core/java/android/view/ViewPropertyAnimator.java
+++ b/core/java/android/view/ViewPropertyAnimator.java
@@ -1110,6 +1110,13 @@ public class ViewPropertyAnimator {
@Override
public void onAnimationEnd(Animator animation) {
mView.setHasTransientState(false);
+ if (mAnimatorCleanupMap != null) {
+ Runnable r = mAnimatorCleanupMap.get(animation);
+ if (r != null) {
+ r.run();
+ }
+ mAnimatorCleanupMap.remove(animation);
+ }
if (mListener != null) {
mListener.onAnimationEnd(animation);
}
@@ -1120,13 +1127,6 @@ 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);
}