From 6eba7325b628f1111e7ff7118aa7d4121d6eefca Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Fri, 11 Dec 2020 16:01:14 -0600 Subject: [PATCH] Disable notification background drawing Bug: 172289783 Test: backgrounds gone with/without half swipe menu in lockscreen and shade Change-Id: Iaf2c722075064d658af774df3042413820ddf0e9 --- packages/SystemUI/res/values/config.xml | 2 +- .../stack/NotificationStackScrollLayout.java | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml index 2bf513c604bd7..8f06aa55a5571 100644 --- a/packages/SystemUI/res/values/config.xml +++ b/packages/SystemUI/res/values/config.xml @@ -358,7 +358,7 @@ true - true + false true 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 4487142e89070..6f3629dd76907 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 @@ -823,13 +823,6 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable if (!mShouldDrawNotificationBackground) { return; } - final boolean newFlowHideShelf = Settings.Global.getInt(mContext.getContentResolver(), - Settings.Global.SHOW_NEW_NOTIF_DISMISS, 1 /* on by default */) == 1; - if (newFlowHideShelf) { - mBackgroundPaint.setColor(Color.TRANSPARENT); - invalidate(); - return; - } // Interpolate between semi-transparent notification panel background color // and white AOD separator. float colorInterpolation = MathUtils.smoothStep(0.4f /* start */, 1f /* end */, @@ -5631,15 +5624,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable mSectionsManager.updateSectionBoundaries(reason); } - boolean isSilkDismissEnabled() { - return Settings.Global.getInt(mContext.getContentResolver(), - Settings.Global.SHOW_NEW_NOTIF_DISMISS, 1 /* enabled by default */) == 1; - } - void updateContinuousBackgroundDrawing() { - if (isSilkDismissEnabled()) { - return; - } boolean continuousBackground = !mAmbientState.isFullyAwake() && mSwipeHelper.isSwiping(); if (continuousBackground != mContinuousBackgroundUpdate) {