Merge "Fix yet another clipTopAmount usage" into tm-dev am: 2d3b1c2719
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18748142 Change-Id: Id29bb798d64013274e74090c6efe34f50325c865 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1668,7 +1668,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
float childTop = slidingChild.getTranslationY();
|
float childTop = slidingChild.getTranslationY();
|
||||||
float top = childTop + slidingChild.getClipTopAmount();
|
float top = childTop + Math.max(0, slidingChild.getClipTopAmount());
|
||||||
float bottom = childTop + slidingChild.getActualHeight()
|
float bottom = childTop + slidingChild.getActualHeight()
|
||||||
- slidingChild.getClipBottomAmount();
|
- slidingChild.getClipBottomAmount();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user