From d254b1935e6ca3bfe9d1a069fac23ff0cf070bd4 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Tue, 5 Feb 2019 13:42:58 -0500 Subject: [PATCH] NotificationStackScrollLayout#mCornerRadius overlay Test: install overlay and change with adb Bug: 121124205 Change-Id: I40c3ae7ce1e5bc2839706b538c4b03f00b57c2c9 --- .../stack/NotificationStackScrollLayout.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 63b34d185c8d0..855cfd9ef7cf1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -599,6 +599,16 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd updateFooter(); } + @Override + public void onOverlayChanged() { + int newRadius = mContext.getResources().getDimensionPixelSize( + Utils.getThemeAttr(mContext, android.R.attr.dialogCornerRadius)); + if (mCornerRadius != newRadius) { + mCornerRadius = newRadius; + invalidate(); + } + } + @VisibleForTesting @ShadeViewRefactor(RefactorComponent.SHADE_VIEW) public void updateFooter() {