summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification/NotificationFooterLayout.java
Commit message (Collapse)AuthorAgeFilesLines
* Keep gutter aligned when removing notification footerTony2017-07-061-1/+4
| | | | | Bug: 63262764 Change-Id: I94e7978dafc04fc2673a9bb8c6d24ff20641416f
* Fix visibility of notification footer dividerTony Wickham2017-06-051-0/+1
| | | | | | | Now it is only visible when the notification footer is present, instead of always being visible. Change-Id: Ie85ff31918901115cdfe55b36e75aa80b43e7b13
* Update accessibility for popupTony2017-05-111-0/+1
| | | | | | | | | | | - Content description includes count of notifications. - Notifications have a dismiss action. - All icons that support shortcuts will have action to show shortcut menu, since there will be system shortcuts even if there are no deep shortcuts. Bug: 36564782 Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
* Small cleanup for notificationsTony Wickham2017-03-151-9/+11
| | | | | | | | | - Add null check when collapsing footer, as container could be null if the app is opened - Remove redundant method that always passed mNotificationItemView - Set mNotificationItemView to null when it is removed Change-Id: Ia329815224b213fc688733eaaf6f29ee6888caaf
* Update notification visuals (part 2)Tony Wickham2017-03-021-76/+51
| | | | | | | | | | | | | | - Background is now white, and color beneath and divider color updated accordingly (not from color extraction) - Removed overflow text ("+6") and added it to a header ("6 Notifications"). Use "..." instead if there is an overflow. - Even spaced out icons in notification footer between the far right icon and the ellipsis - Remove code to change arrow tint, since it is always white now. This also fixes the issue where it was drawn as a rect. Bug: 35766387 Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
* Update notification view to match newer specsTony Wickham2017-02-241-36/+46
| | | | | | | | | | | - Use smaller radius for notifications round rect background - Remove "Notifications" header, and clip children to round rect path - Flip main notification so that icon shows on the right instead of left; footer is also flipped so animation makes sense - Clean up animations to animate view outline instead of height Bug: 32410600 Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
* Remove first icon from notification footer after it animates.Tony Wickham2017-02-221-34/+41
| | | | | | | | | | | | Before, we had a hack where the notifation view would tell the footer to trim its notifications, which is inefficient and ugly since we already know exactly what notification to remove. So now we move the relevant removal logic (keeping things like the overflow text in sync) to a removeViewFromIconRow() that is used after the icon animates as well as when trimming notifications. Bug: 32410600 Change-Id: I19e54e0c28daea869b45649c7f5c74843412bb86
* Removing wrapper around ViewPropertyAnimator, and using ObjectAnimatorSunny Goyal2017-02-161-6/+6
| | | | | | | instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
* Merge "Use notification icon views' tags to store NotificationInfo." into ↵Tony Wickham2017-01-311-8/+3
|\ | | | | | | ub-launcher3-master
| * Use notification icon views' tags to store NotificationInfo.Tony Wickham2017-01-271-8/+3
| | | | | | | | | | | | | | | | Previously we had a mapping from View to NotificationInfo, but this way we don't have to maintain that separate mapping and can follow the pattern used throughout the rest of launcher. Change-Id: Ia988f822613b9978bab3d0127226de920a3e73c9
* | Ensure notification icons have enough contrast with background.Tony Wickham2017-01-271-2/+4
|/ | | | | | | | | This uses the same color calculations as the system, except that we use the extracted notification background instead of assuming it is white. Bug: 32410600 Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
* Merge "Store notification keys in a List instead of a Set." into ↵Tony Wickham2017-01-261-2/+1
|\ | | | | | | ub-launcher3-master
| * Store notification keys in a List instead of a Set.Tony Wickham2017-01-261-2/+1
| | | | | | | | | | | | | | | | This will preserve the order when iterating over the notifications to populate the popup container. Bug: 34735689 Change-Id: Ic390ffef140e454566ffc6ab1763950349df25ce
* | Add and update some comments badging/notifications.Tony Wickham2017-01-261-2/+1
|/ | | | Change-Id: Iab4e837c9be01cbd7764c8920e36c6d8159e16dd
* Add swipe-to-dismiss notifications in popup menu.Tony Wickham2017-01-251-0/+244
- Next secondary icon animates up to replace dismissed main notification - Add padding around main notification so it always aligns with the straight edges of the view (not the rounded corners); looks more dismissable - Notification view collapses as notifications are dismissed - To mimic system notification behavior, we copy SwipeHelper, FlingAnimationUtils, and Interpolators. We also apply elevation to notifications and reveal a darker color beneath when dismissing. Bug: 32410600 Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972