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

Commit f724b598 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

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

Change-Id: I98dbe58b7f8529a7d00403b9bbd28dd8ae31ec6a
parents a2ef3217 76810f44
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
    }