diff options
| author | 2022-05-23 20:51:15 +0000 | |
|---|---|---|
| committer | 2022-05-23 20:51:15 +0000 | |
| commit | 8d2aafe801ba1dd0045ce8f91dace92c7adb42d8 (patch) | |
| tree | 9570922174f700e3dcd0a390e0ccdb3e62b606ec | |
| parent | 53c5e67df630f992a470d86a16399428a65e5f41 (diff) | |
| parent | 07381950ec0234d44796e5d5932d436576b48e1b (diff) | |
Merge "Fix clipTopAmount when read in 2 more critical places" into tm-dev
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java index 929dda60b1b7..d71e76801b3b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java @@ -422,7 +422,7 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable { outRect.top += getTop() + getTranslationY(); } outRect.bottom = outRect.top + getActualHeight(); - outRect.top += getClipTopAmount(); + outRect.top += Math.max(0, getClipTopAmount()); } public boolean isSummaryWithChildren() { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java index dad06d91dea1..34fce4c29c25 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationChildrenContainer.java @@ -855,7 +855,7 @@ public class NotificationChildrenContainer extends ViewGroup for (int childIdx = 0; childIdx < count; childIdx++) { ExpandableNotificationRow slidingChild = mAttachedChildren.get(childIdx); float childTop = slidingChild.getTranslationY(); - float top = childTop + slidingChild.getClipTopAmount(); + float top = childTop + Math.max(0, slidingChild.getClipTopAmount()); float bottom = childTop + slidingChild.getActualHeight(); if (y >= top && y <= bottom) { return slidingChild; |