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

Commit 6eba7325 authored by Lyn Han's avatar Lyn Han
Browse files

Disable notification background drawing

Bug: 172289783
Test: backgrounds gone with/without half swipe menu in lockscreen and shade

Change-Id: Iaf2c722075064d658af774df3042413820ddf0e9
parent 2928df12
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@
    <bool name="config_showNotificationGear">true</bool>

    <!-- Whether or not a background should be drawn behind a notification. -->
    <bool name="config_drawNotificationBackground">true</bool>
    <bool name="config_drawNotificationBackground">false</bool>

    <!-- Whether or the notifications can be shown and dismissed with a drag. -->
    <bool name="config_enableNotificationShadeDrag">true</bool>
+0 −15
Original line number Diff line number Diff line
@@ -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) {