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:
Peter Kalauskas
2022-06-14 00:13:56 +00:00
parent 8e0971ce2c
commit 9e00755014

View File

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