diff options
author | Tony Wickham <twickham@google.com> | 2017-06-05 17:37:50 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-06-19 18:42:46 -0700 |
commit | 5a1ca5756ecea6784743f5cd1540844c1a83b36f (patch) | |
tree | 07fb5a90c3f33e263d0022c7552bcec8980d63b1 /src/com/android/launcher3/popup/PopupContainerWithArrow.java | |
parent | 034d74da197c4aac790bfdf16bef8527e3f18fca (diff) | |
download | android_packages_apps_Trebuchet-5a1ca5756ecea6784743f5cd1540844c1a83b36f.tar.gz android_packages_apps_Trebuchet-5a1ca5756ecea6784743f5cd1540844c1a83b36f.tar.bz2 android_packages_apps_Trebuchet-5a1ca5756ecea6784743f5cd1540844c1a83b36f.zip |
Adjust some sizes in popup
- Increase main notification height and pad text/icon bottom
- Reduce shortcuts height when there are notifications to 48dp
- When the last notification is dismissed, animate back to 56dp
Bug: 35766387
Change-Id: I84f843c042137fdf93fa720802eb2f19337197b4
Diffstat (limited to 'src/com/android/launcher3/popup/PopupContainerWithArrow.java')
-rw-r--r-- | src/com/android/launcher3/popup/PopupContainerWithArrow.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index cea4bc24f..c5daca0e1 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -306,6 +306,12 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra shortcutsItemRoundedCorners &= ~ROUNDED_TOP_CORNERS; } } + if (itemTypeToPopulate != PopupPopulator.Item.SYSTEM_SHORTCUT_ICON + && numNotifications > 0) { + // Condense shortcuts height when there are notifications. + item.getLayoutParams().height = res.getDimensionPixelSize( + R.dimen.bg_popup_item_condensed_height); + } mShortcutsItemView.addShortcutView(item, itemTypeToPopulate); if (shouldUnroundBottomCorners) { shortcutsItemRoundedCorners &= ~ROUNDED_BOTTOM_CORNERS; |