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

Commit d7ae1e43 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clear notification undershelf background"

parents 068753f9 ccb85723
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -835,7 +835,13 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        if (!mShouldDrawNotificationBackground) {
            return;
        }

        final boolean clearUndershelf = Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.SHOW_NEW_NOTIF_DISMISS, 0 /* show background by default */) == 1;
        if (clearUndershelf) {
            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 */,