Merge "Revert "Consider icon scale when calculating icon offset in shelf"" into pi-dev

am: 70a9cd292b

Change-Id: If6d1ec275a8734c1f4c891598aa4c6265cda7ae3
This commit is contained in:
Selim Cinek
2018-06-08 16:07:23 -07:00
committed by android-build-merger

View File

@@ -482,8 +482,8 @@ public class NotificationShelf extends ActivatableNotificationView implements
iconTransformDistance = Math.min(iconTransformDistance, fullHeight);
if (isLastChild) {
fullHeight = Math.min(fullHeight, row.getMinHeight() - getIntrinsicHeight());
iconTransformDistance = Math.min(iconTransformDistance,
row.getMinHeight() - getIntrinsicHeight() * icon.getIconScale());
iconTransformDistance = Math.min(iconTransformDistance, row.getMinHeight()
- getIntrinsicHeight());
}
float viewEnd = viewStart + fullHeight;
if (expandingAnimated && mAmbientState.getScrollY() == 0