Merge "Don't animate invisible views" into sc-dev am: bd78fd02de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427876 Change-Id: I6e31a282673b89e79d9dad68a547d068d39344fc
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