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

Commit 9199ba6b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove DynamicAnimation when it ends." into rvc-dev am: 76810f44 am:...

Merge "Remove DynamicAnimation when it ends." into rvc-dev am: 76810f44 am: f724b598 am: 6e187c44

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11814938

Change-Id: Icdbbdcc037bd3c055e0dd88ad6f82d79ff00fd25
parents ce957e0b 6e187c44
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -644,6 +644,12 @@ class PhysicsAnimator<T> private constructor (target: T) {
                it.onInternalAnimationEnd(
                        property, canceled, value, velocity, anim is FlingAnimation)
            }
            if (springAnimations[property] == anim) {
                springAnimations.remove(property)
            }
            if (flingAnimations[property] == anim) {
                flingAnimations.remove(property)
            }
        }
        return anim
    }