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

Commit a2bb23a2 authored by Lyn Han's avatar Lyn Han Committed by Automerger Merge Worker
Browse files

Merge "Fix disappearing notifications when closing fullscreen QS" into sc-dev...

Merge "Fix disappearing notifications when closing fullscreen QS" into sc-dev am: 68f26fd9 am: 4f8ddb30

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14789088

Change-Id: I6ce3f118621fc92d7d54cacbf96fa0c85fe8384b
parents 74be236d 4f8ddb30
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -382,13 +382,15 @@ public class StackScrollAlgorithm {

        final boolean isHunGoingToShade = ambientState.isShadeExpanded()
                && view == ambientState.getTrackedHeadsUpRow();
        if (!isHunGoingToShade) {
            if (ambientState.isExpansionChanging() && !ambientState.isOnKeyguard()) {
        if (isHunGoingToShade) {
            // Keep 100% opacity for heads up notification going to shade.
        } else if (ambientState.isOnKeyguard()) {
            // Adjust alpha for wakeup to lockscreen.
            viewState.alpha = 1f - ambientState.getHideAmount();
        } else if (ambientState.isExpansionChanging()) {
            // Adjust alpha for shade open & close.
            viewState.alpha = Interpolators.getNotificationScrimAlpha(
                    ambientState.getExpansionFraction(), true /* notification */);
            } else {
                viewState.alpha = 1f - ambientState.getHideAmount();
            }
        }

        if (view.mustStayOnScreen() && viewState.yTranslation >= 0) {