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

Commit 5171e388 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fixing notification background peeking from the bottom when expanding...

Merge "Fixing notification background peeking from the bottom when expanding QS" into sc-dev am: 4c4ab603 am: 19295e63

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14980855

Change-Id: I9bcce0b4ea429988a9895f4583cfe62a73d1a26b
parents 3bb4fea2 19295e63
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -537,11 +537,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
     */
    public void setNotificationsBounds(float left, float top, float right, float bottom) {
        if (mClipsQsScrim) {
            // notification scrim's rounded corners are anti-aliased, but clipping of the QS scrim
            // can't be and it's causing jagged corners. That's why notification scrim needs
            // to overlap QS scrim by one pixel - both vertically (top - 1) and
            // horizontally (left - 1 and right + 1), see: b/186644628
            mNotificationsScrim.setDrawableBounds(left - 1, top - 1, right + 1, bottom);
            // notification scrim's rounded corners are anti-aliased, but clipping of the QS/behind
            // scrim can't be and it's causing jagged corners. That's why notification scrim needs
            // to overlap QS scrim by one pixel horizontally (left - 1 and right + 1)
            // see: b/186644628
            mNotificationsScrim.setDrawableBounds(left - 1, top, right + 1, bottom);
            mScrimBehind.setBottomEdgePosition((int) top);
        } else {
            mNotificationsScrim.setDrawableBounds(left, top, right, bottom);