Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev am: 2ed613ca80 am: 0d7ff5328e

am: ae74e8d8da

Change-Id: Ia9842fb548e60f7406b414b9b5321c734b7e4a66
This commit is contained in:
Selim Cinek
2017-07-20 21:07:56 +00:00
committed by android-build-merger

View File

@@ -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;