diff options
| author | 2018-05-31 18:48:05 -0400 | |
|---|---|---|
| committer | 2018-05-31 18:48:05 -0400 | |
| commit | 5dad60e6928f29d5a959cb4e2fb45e17253ca88c (patch) | |
| tree | 8d8021b0a590a6ff19716ebd4d9e236f137f18a3 | |
| parent | abed288a081c5016200b562ffdca75faac5574dc (diff) | |
Consider icon scale when calculating icon offset in shelf
Fixes the the jumping of the last icon in the notification shade when
you start to collapse slowly.
Test: visual
Change-Id: Ia4d4189104ce1b4e7b45276f4a2fa26f8186390e
Fixes: 80270979
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 306319903ecb..fac77689e289 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -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()); + iconTransformDistance = Math.min(iconTransformDistance, + row.getMinHeight() - getIntrinsicHeight() * icon.getIconScale()); } float viewEnd = viewStart + fullHeight; if (expandingAnimated && mAmbientState.getScrollY() == 0 |