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

Unverified Commit 5983fe42 authored by Adithya R's avatar Adithya R Committed by Michael Bestas
Browse files

SystemUI: Hide notifications when quickly expanding QS

Expand/collapse animation with the 2 finger swipe/swipe down from
right side to expand QS gesture [1] was pretty ugly with all the
notifications being dragged along. Let's hide the notifications
stack entirely when quickly expanding QS, for a nicer looking
animation similar to the one in lockscreen.

[1]: https://github.com/pa-gr/android_frameworks_base/commit/d3622399728c819c45c5435ddd0b1e359207f962

Change-Id: Id2dbc707f9da543d47d76ae5525e827b400a4e7b
parent d57277c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2501,6 +2501,9 @@ public final class NotificationPanelViewController implements Dumpable {
                && !mKeyguardBypassController.getBypassEnabled()) {
            alpha *= mClockPositionResult.clockAlpha;
        }
        if (mQsController.isExpandImmediate() && !mQsController.getFullyExpanded()) {
            alpha = 0f;
        }
        mNotificationStackScrollLayoutController.setAlpha(alpha);
    }