Merge "Fix yet another clipTopAmount usage" into tm-dev

This commit is contained in:
Jeff DeCew
2022-06-06 13:35:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1668,7 +1668,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
continue;
}
float childTop = slidingChild.getTranslationY();
float top = childTop + slidingChild.getClipTopAmount();
float top = childTop + Math.max(0, slidingChild.getClipTopAmount());
float bottom = childTop + slidingChild.getActualHeight()
- slidingChild.getClipBottomAmount();