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

Commit a45a8308 authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Fixing notification scrim bounds in split shade

Fixes: 186644249
Test: manual
Change-Id: I980aa4fef80776a7d6880fe1a9737e8098647aa3
parent b2de16f2
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -2075,7 +2075,6 @@ public class NotificationPanelViewController extends PanelViewController {
        setQsExpansionEnabled(mAmbientState.getScrollY() == 0);

        int radius = mScrimCornerRadius;
        if (visible || !mShouldUseSplitNotificationShade) {
        if (!mShouldUseSplitNotificationShade) {
            top = (int) Math.min(qsPanelBottomY, notificationTop);
            bottom = getView().getBottom();
@@ -2083,13 +2082,12 @@ public class NotificationPanelViewController extends PanelViewController {
            right = getView().getRight();
            radius = (int) MathUtils.lerp(mScreenCornerRadius, mScrimCornerRadius,
                    Math.min(top / (float) mScrimCornerRadius, 1f));
            } else {
        } else if (qsPanelBottomY > 0) { // so bounds are empty on lockscreen
            top = Math.min(qsPanelBottomY, mSplitShadeNotificationsTopPadding);
            bottom = mNotificationStackScrollLayoutController.getHeight();
            left = mNotificationStackScrollLayoutController.getLeft();
            right = mNotificationStackScrollLayoutController.getRight();
        }
        }

        // Fancy clipping for quick settings
        if (mQs != null) {