Merge "Don't animate invisible views" into sc-dev

This commit is contained in:
John Reck
2021-05-05 18:19:40 +00:00
committed by Android (Google) Code Review

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();
}