From 92b82439c7e73f688ba99085c84ca7aabb794ff3 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Thu, 9 Jun 2016 17:33:56 -0700 Subject: [PATCH] Fix shade background not aligning with bottom of a group The extra padding used to show the shadow at the bottom of a group was wrongly being subtracted from the shade background causing a misalignment with the bottom of the group and the shade background. Change-Id: Ia138fcdcb5428605b59f5448ee125c6b3f3e0d93 Fixes: 29250090 --- .../statusbar/stack/NotificationStackScrollLayout.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index d5f17073d6829..cb6a9d6d02a51 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -1958,8 +1958,7 @@ public class NotificationStackScrollLayout extends ViewGroup // we're ending up at the same location as we are now, lets just skip the animation bottom = finalBottom; } else { - bottom = (int) (lastView.getTranslationY() + lastView.getActualHeight() - - lastView.getExtraBottomPadding()); + bottom = (int) (lastView.getTranslationY() + lastView.getActualHeight()); bottom = Math.min(bottom, getHeight()); } } else {