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

Commit 83836d8c authored by Lucas Dupin's avatar Lucas Dupin Committed by Automerger Merge Worker
Browse files

Merge "Keep HUN opaque for transition to shade" into sc-dev am: 38cb397b am: 276eb111

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

Change-Id: I9285afd4bb1d5069fc0bdb4b9a0b5ca5d765eb9d
parents f4e8c926 276eb111
Loading
Loading
Loading
Loading
+9 −5
Original line number Original line Diff line number Diff line
@@ -380,12 +380,16 @@ public class StackScrollAlgorithm {
        ExpandableViewState viewState = view.getViewState();
        ExpandableViewState viewState = view.getViewState();
        viewState.location = ExpandableViewState.LOCATION_UNKNOWN;
        viewState.location = ExpandableViewState.LOCATION_UNKNOWN;


        final boolean isHunGoingToShade = ambientState.isShadeExpanded()
                && view == ambientState.getTrackedHeadsUpRow();
        if (!isHunGoingToShade) {
            if (ambientState.isExpansionChanging() && !ambientState.isOnKeyguard()) {
            if (ambientState.isExpansionChanging() && !ambientState.isOnKeyguard()) {
                viewState.alpha = Interpolators.getNotificationScrimAlpha(
                viewState.alpha = Interpolators.getNotificationScrimAlpha(
                        ambientState.getExpansionFraction(), true /* notification */);
                        ambientState.getExpansionFraction(), true /* notification */);
            } else {
            } else {
                viewState.alpha = 1f - ambientState.getHideAmount();
                viewState.alpha = 1f - ambientState.getHideAmount();
            }
            }
        }


        if (view.mustStayOnScreen() && viewState.yTranslation >= 0) {
        if (view.mustStayOnScreen() && viewState.yTranslation >= 0) {
            // Even if we're not scrolled away we're in view and we're also not in the
            // Even if we're not scrolled away we're in view and we're also not in the