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

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

Removing unnecessary QuickSettings clip bounds in split shade

Fixes: 186635452
Test: manual
Change-Id: I6a5ca593e32c2f01f53e0d40b86ab8e922dbf47c
parent 16f25344
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
@@ -2060,7 +2060,8 @@ public class NotificationPanelViewController extends PanelViewController {
        int bottom = 0;
        int bottom = 0;
        int left = 0;
        int left = 0;
        int right = 0;
        int right = 0;
        boolean visible = qsFraction > 0 || qsPanelBottomY > 0;
        boolean visible = (qsFraction > 0 || qsPanelBottomY > 0)
                && !mShouldUseSplitNotificationShade;
        int radius = mScrimCornerRadius;
        int radius = mScrimCornerRadius;
        if (visible || !mShouldUseSplitNotificationShade) {
        if (visible || !mShouldUseSplitNotificationShade) {
            if (!mShouldUseSplitNotificationShade) {
            if (!mShouldUseSplitNotificationShade) {
@@ -2079,11 +2080,11 @@ public class NotificationPanelViewController extends PanelViewController {
            }
            }
        }
        }


        if (!mShouldUseSplitNotificationShade) {
        // Fancy clipping for quick settings
        // Fancy clipping for quick settings
        if (mQs != null) {
        if (mQs != null) {
            mQs.setFancyClipping(top, bottom, radius, visible);
            mQs.setFancyClipping(top, bottom, radius, visible);
        }
        }
        if (!mShouldUseSplitNotificationShade) {
            // The padding on this area is large enough that we can use a cheaper clipping strategy
            // The padding on this area is large enough that we can use a cheaper clipping strategy
            mKeyguardStatusAreaClipBounds.set(left, top, right, bottom);
            mKeyguardStatusAreaClipBounds.set(left, top, right, bottom);
            mKeyguardStatusViewController.setClipBounds(visible
            mKeyguardStatusViewController.setClipBounds(visible