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

Unverified Commit e91db01b 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 ac66dfbe
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2794,6 +2794,9 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
                && !mQsController.getFullyExpanded()) {
                alpha *= mClockPositionResult.clockAlpha;
            }
            if (mQsController.isExpandImmediate() && !mQsController.getFullyExpanded()) {
                alpha = 0f;
            }
            mNotificationStackScrollLayoutController.setMaxAlphaForKeyguard(alpha,
                    "NPVC.updateNotificationTranslucency()");
        }