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