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
This commit is contained in:
Mady Mellor
2016-06-09 17:33:56 -07:00
parent a86d6c4df3
commit 92b82439c7

View File

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