Don't animate invisible views
Bug: 184230269 Test: wasn't Change-Id: Iec6eefedc2c82750ea721ae3d1184be1939066ef
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user