Merge "Don't animate invisible views" into sc-dev
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