From df153c021a7301cd005af8caf624ad4152ef7842 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 25 Feb 2020 17:26:49 -0800 Subject: [PATCH] Fixed the flickering of the corners when collapsing the shade Previously the header was flickering as soon as the collaping approached the top of the shade. Fixes: 150177399 Test: visual Change-Id: I84f3f66d2527b13e541c99c106492518a063a5d4 --- .../src/com/android/systemui/statusbar/NotificationShelf.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 99682fcfccbfd..882a88bbdb755 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -120,6 +120,10 @@ public class NotificationShelf extends ActivatableNotificationView implements setClipToPadding(false); mShelfIcons.setIsStaticLayout(false); setBottomRoundness(1.0f, false /* animate */); + + // Setting this to first in section to get the clipping to the top roundness correct. This + // value determines the way we are clipping to the top roundness of the overall shade + setFirstInSection(true); initDimens(); }