From 9e00755014d635f531c60a73bba6d115a090d770 Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Tue, 14 Jun 2022 00:13:56 +0000 Subject: [PATCH] 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 --- .../statusbar/notification/row/StackScrollerDecorView.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/StackScrollerDecorView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/StackScrollerDecorView.java index 7414bdc136723..5aaf63f8d32d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/StackScrollerDecorView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/StackScrollerDecorView.java @@ -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); }