summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2017-07-20 20:38:27 +0000
committer android-build-merger <android-build-merger@google.com> 2017-07-20 20:38:27 +0000
commit8b1a5af47322e985e32a1c897f2d266554faaa10 (patch)
tree94994396ca4fcd5c53a08a59412c9f169de095fa
parentdbb5c984233b25bfa6ee1c38d361a75cf52c6880 (diff)
parent2ed613ca80f833df14c9a42c2dbe48d800c4eb5d (diff)
Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev
am: 2ed613ca80 Change-Id: Id697948b665319b83b6becfa56a0148a13149ae3
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
index e5f68ad60089..1889806bf985 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
@@ -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;