summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/statusbar/NotificationGroupingUtil.java
Commit message (Collapse)AuthorAgeFilesLines
* Always highlight unread countJeff DeCew2021-06-031-6/+0
| | | | | | Fixes: 188646708 Test: get unread count within a group Change-Id: I41d67e5e488e0d3dbc3873d6d50d55ec4ab8c9f2
* Allow populating left_icon independently of right_icon.Jeff DeCew2021-05-121-13/+21
| | | | | | | | | | * Mainly this fixes a "bug" with the BigPictureStyle.showBigPictureWhenCollapsed() that would cause the big picture, which is known to be important for the notification, to be hidden on the right and shown on the left. Instead the BigPicture will now remain visible in its large form on the right, and the left icon will be populated with the large icon. * Additionally, this fixes some quirks with other layouts, such as MediaStyle and MessagingStyle that the largeIcon would be missing (sometimes only in one expansion state) when it could be shown in the left column. * Finally, this fixes a few bugs in the expansion animation that were caused by logic for determining the showing icon being inconsistent between Notification.java and the notification view wrappers. Bug: 186421651 Test: post notifications of all these types in and outside of groups. Change-Id: Ifd1d817afcb1b6fa8cfb79baee96364af8c7af3c
* Group notification time bugJay Aliomer2021-04-011-8/+8
| | | | | | Fixes: b/182160998 Test: Notify app Change-Id: Id0147be59524879fb94cea7ccfb1c0202490c460
* Flow text around the large icon.Jeff DeCew2021-03-101-0/+7
| | | | | | | | This is only necessary when a notification is posted without a title. Fixes: 177976174 Test: Manual inspection of various staes. Change-Id: I15fdc31e1557b7e5d6fb99e410f4bf37d6734ac4
* Remove the line1 container for the titleJeff DeCew2021-03-061-1/+1
| | | | | | Bug: 181048615 Test: visual inspection Change-Id: I5a18f3ac93f9054500d65db606ac6284281123db
* Show LargeIcon as wide for apps targeting S.Jeff DeCew2021-01-071-2/+6
| | | | | | | | | * This does not inhibit the grouping behavior which demotes this image and shows it in a smaller square area on the left. * This also converts the Notification class to calculate margins and sizes in DIP instead of PX, as that is more resilient. Fixes: 175409684 Test: atest NotificationTemplateTest Change-Id: I35d28c8df341dbbac2774026c6ca749e296c0482
* Fix NPE that can occur on uiMode change if a group has a single child.Jeff DeCew2020-11-301-3/+3
| | | | | | | | | Note that the ternary null check inside init is not necessary given the other change, but seems prudent. Fixes: 173777455 Fixes: 173650635 Test: manual -- use go/notify-apk to post a group of 2, dismiss 1, change font size. Observe SystemUI no longer crashes. Change-Id: I71a820a1ed2ac7ec71c4d9f78855ff264c5d5051
* Show largeIcon on the left when grouped.Jeff DeCew2020-11-301-0/+476
* The icon is smaller when shown on the left. * This only happens when grouping logic hides the notification icon (same icon/color for all children in the group). * Does not apply to messaging layouts. Bug: 163626038 Test: manual Change-Id: I4c7db076db11ccc69f2907bbb441ff3bc06078f2