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

Commit 933492a0 authored by Michał Brzeziński's avatar Michał Brzeziński Committed by Automerger Merge Worker
Browse files

Merge "Fixing jagged corners of the notification scrim" into sc-dev am: 015ab56a

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

Change-Id: Ia5820ef7a8ad304e6d9773d554323582bc3fba2c
parents 8442800b 015ab56a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -548,8 +548,11 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump
     */
    public void setNotificationsBounds(float left, float top, float right, float bottom) {
        if (mClipsQsScrim) {
            // "top - 1" to have 1 px of scrims overlap, see: b/186644628
            mNotificationsScrim.setDrawableBounds(left, top - 1, right, bottom);
            // 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);
            mScrimBehind.setBottomEdgePosition((int) top);
        } else {
            mNotificationsScrim.setDrawableBounds(left, top, right, bottom);