diff options
author | Tony Wickham <twickham@google.com> | 2017-09-05 15:09:43 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-09-06 13:37:00 -0700 |
commit | 2063ebd990fdbea3f273a5c4fef3b739852c51c5 (patch) | |
tree | becf8e66267f010cb6911b97613af4a435822f0d /src/com/android/launcher3/popup | |
parent | 94b02ad8882f971e89cca12f8abfb1931b2e77dc (diff) | |
download | android_packages_apps_Trebuchet-2063ebd990fdbea3f273a5c4fef3b739852c51c5.tar.gz android_packages_apps_Trebuchet-2063ebd990fdbea3f273a5c4fef3b739852c51c5.tar.bz2 android_packages_apps_Trebuchet-2063ebd990fdbea3f273a5c4fef3b739852c51c5.zip |
Adjust notification paddings
- Reduce main notification height
- Increase header height and center "Notifications"
- Footer has short height when empty to serve as padding
Bug: 65215656
Change-Id: I691d176628b0b51e8d9af030084b8c29837778dc
Diffstat (limited to 'src/com/android/launcher3/popup')
-rw-r--r-- | src/com/android/launcher3/popup/PopupContainerWithArrow.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index c3e2d8b89..8441598cf 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -275,8 +275,9 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra if (itemTypeToPopulate == PopupPopulator.Item.NOTIFICATION) { mNotificationItemView = (NotificationItemView) item; boolean notificationFooterHasIcons = numNotifications > 1; - int footerHeight = notificationFooterHasIcons ? - res.getDimensionPixelSize(R.dimen.notification_footer_height) : 0; + int footerHeight = res.getDimensionPixelSize( + notificationFooterHasIcons ? R.dimen.notification_footer_height + : R.dimen.notification_empty_footer_height); item.findViewById(R.id.footer).getLayoutParams().height = footerHeight; if (notificationFooterHasIcons) { mNotificationItemView.findViewById(R.id.divider).setVisibility(VISIBLE); |