Remove setOutlineProvider call from layout pass
To reduce risk of double taxation in layout-and-measure stage, move call to setOutlineProvider in StackScrollerDecorView from onLayout to onFinishInflate. Test: atest com.android.systemui.statusbar Bug: 231054525 Change-Id: Ia7a69323a3da283baabc61aa17219eac8ed9ca66
This commit is contained in:
@@ -74,11 +74,6 @@ public abstract class StackScrollerDecorView extends ExpandableView {
|
||||
mSecondaryView = findSecondaryView();
|
||||
setVisible(false /* nowVisible */, false /* animate */);
|
||||
setSecondaryVisible(false /* nowVisible */, false /* animate */);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||
super.onLayout(changed, left, top, right, bottom);
|
||||
setOutlineProvider(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user