Merge "Guard against an NPE if a view is removed just after a path animation started." into rvc-dev am: 0b90ea2837 am: e0e0aff039
Original change: undetermined Change-Id: Ibd70af162a0f4f225431e5bda47b69f1676bcfce
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