Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev
am: 2ed613ca80
Change-Id: I68feaf8262bb23db08199bff874fc871cff1acfb
This commit is contained in:
@@ -244,7 +244,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
|
||||
boolean aboveShelf = ViewState.getFinalTranslationZ(row) > baseZHeight;
|
||||
boolean isLastChild = child == lastChild;
|
||||
float rowTranslationY = row.getTranslationY();
|
||||
if (isLastChild || aboveShelf || backgroundForceHidden) {
|
||||
if ((isLastChild && !child.isInShelf()) || aboveShelf || backgroundForceHidden) {
|
||||
notificationClipEnd = shelfStart + getIntrinsicHeight();
|
||||
} else {
|
||||
notificationClipEnd = shelfStart - mPaddingBetweenElements;
|
||||
|
||||
Reference in New Issue
Block a user