Guard against an NPE if a view is removed just after a path animation started.
Fixes: 157071931 Test: atest SystemUITests Change-Id: I8daa96267db4c40734f6b8212b9b79e48120f9e6
This commit is contained in:
@@ -1037,6 +1037,11 @@ public class PhysicsAnimationLayout extends FrameLayout {
|
||||
if (view != null) {
|
||||
final SpringAnimation animation =
|
||||
(SpringAnimation) view.getTag(getTagIdForProperty(property));
|
||||
|
||||
if (animation == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
final SpringForce animationSpring = animation.getSpring();
|
||||
|
||||
if (animationSpring == null) {
|
||||
|
||||
Reference in New Issue
Block a user