Remove unneeded isShadeOpening check when clipping bottom HUN
Bug: 200544499 Test: send tall HUN, then short HUN => no clipping Change-Id: I4447e0cbb2d13da7b0bf1151541374ea0835b6c2
This commit is contained in:
@@ -202,12 +202,10 @@ public class StackScrollAlgorithm {
|
||||
float newHeight = state.height;
|
||||
float newNotificationEnd = newYTranslation + newHeight;
|
||||
boolean isHeadsUp = (child instanceof ExpandableNotificationRow) && child.isPinned();
|
||||
final boolean shadeClosedWithHUN =
|
||||
ambientState.isShadeOpening() && !ambientState.isShadeExpanded();
|
||||
if (mClipNotificationScrollToTop
|
||||
&& (!state.inShelf || (isHeadsUp && !firstHeadsUp))
|
||||
&& newYTranslation < clipStart
|
||||
&& shadeClosedWithHUN) {
|
||||
&& !ambientState.isShadeExpanded()) {
|
||||
// The previous view is overlapping on top, clip!
|
||||
float overlapAmount = clipStart - newYTranslation;
|
||||
state.clipTopAmount = (int) overlapAmount;
|
||||
|
||||
Reference in New Issue
Block a user