Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 291672cc authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev...

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

Change-Id: Ia9842fb548e60f7406b414b9b5321c734b7e4a66
parents db8167e7 ae74e8d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;