Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f643fb02 authored by George Mount's avatar George Mount
Browse files

Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""

This reverts commit 879a626f.

Change-Id: I6fd011fb86a2aa0e30ba41fdefa3e29c7771e647
parent 1b8189d8
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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);
        }