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

Commit 7f86355b authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Merge "Fix the premature hiding of notifications while expanding QS." into...

Merge "Fix the premature hiding of notifications while expanding QS." into sc-dev am: f9f6e082 am: b1f8a4d2

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

Change-Id: I7490959ed78f7650bfc881a799126f2e39b28665
parents 6a2c98ca b1f8a4d2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -420,8 +420,9 @@ public class StackScrollAlgorithm {
                // When pulsing (incoming notification on AOD), innerHeight is 0; clamp all
                // to shelf start, thereby hiding all notifications (except the first one, which we
                // later unhide in updatePulsingState)
                final int shelfStart = ambientState.getInnerHeight()
                        - ambientState.getShelf().getIntrinsicHeight();
                final int stackBottom = !ambientState.isShadeExpanded() || ambientState.isDozing()
                        ? ambientState.getInnerHeight() : (int) ambientState.getStackHeight();
                final int shelfStart = stackBottom - ambientState.getShelf().getIntrinsicHeight();
                viewState.yTranslation = Math.min(viewState.yTranslation, shelfStart);
                if (viewState.yTranslation >= shelfStart) {
                    viewState.hidden = !view.isExpandAnimationRunning()