Skip to content

Commit ffd748a

Browse files
adithya2306hungphan2001
authored andcommitted
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]: pa-gr/android_frameworks_base@d362239 Change-Id: Id2dbc707f9da543d47d76ae5525e827b400a4e7b
1 parent eefff44 commit ffd748a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,6 +3339,9 @@ private void updateNotificationTranslucency() {
33393339
&& !mKeyguardBypassController.getBypassEnabled()) {
33403340
alpha *= mClockPositionResult.clockAlpha;
33413341
}
3342+
if (mQsExpandImmediate && !mQsFullyExpanded) {
3343+
alpha = 0f;
3344+
}
33423345
mNotificationStackScrollLayoutController.setAlpha(alpha);
33433346
if (mBarState != StatusBarState.KEYGUARD && !isFullyCollapsed() && !isPanelVisibleBecauseOfHeadsUp()) {
33443347
mCentralSurfaces.updateDismissAllVisibility(true);

0 commit comments

Comments
 (0)