summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2017-07-20 20:51:36 +0000
committer android-build-merger <android-build-merger@google.com> 2017-07-20 20:51:36 +0000
commitae74e8d8da9a20f2e1ee2830f8fe84393cb56b8f (patch)
tree2506c8a328ccdb615e20defe11fd002376bfd133
parent5cd07d5a4be682f00a763816658a224ecafc6688 (diff)
parent0d7ff5328e15a1de752dcb483f9aca0e55a44118 (diff)
Merge "Clipping the last notification if it's in the shelf" into oc-dr1-dev am: 2ed613ca80
am: 0d7ff5328e Change-Id: Ibb62d63ab18f2d200b4eacd66c260eab7cad0184
-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;