Don't animate invisible views

Bug: 184230269
Test: wasn't
Change-Id: Iec6eefedc2c82750ea721ae3d1184be1939066ef
This commit is contained in:
John Reck
2021-05-04 13:53:01 -04:00
parent 3c865b129a
commit 12bb4739d2

View File

@@ -23553,6 +23553,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
mStateListAnimator.setState(state);
}
if (!isAggregatedVisible()) {
// If we're not visible, skip any animated changes
jumpDrawablesToCurrentState();
}
if (changed) {
invalidate();
}