Merge "Remove DynamicAnimation when it ends." into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-10 18:59:20 +00:00
committed by Android (Google) Code Review

View File

@@ -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
}