Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e007550 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

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
parent 8e0971ce
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);
    }