OSDN Git Service

Support notifications with 0 count (show as dots)
authorTony Wickham <twickham@google.com>
Thu, 27 Apr 2017 01:13:56 +0000 (18:13 -0700)
committerTony <twickham@google.com>
Thu, 27 Apr 2017 02:39:05 +0000 (19:39 -0700)
commit0530e8c60809afa92b1aa907376f0553ad94d58f
tree044b2b2ee2686d2bf1e97f3abe08fcb176a62acd
parentb85f5dfcba3833b2a520e14fb6526de58763444f
Support notifications with 0 count (show as dots)

- Show number if number > 0
- Show icon if number == 0 and a notification specified an icon to show
- Show a dot otherwise
- In cases of multiple notifications, stack a second badge behind the
  first (visuals will be updated in future CL, as well as support
  stacked dots)
- Folders always show dot if any app within has a badge.

Change-Id: I0a89059b0e0a0d174fe739c9da4f75fa18c0edfa
src/com/android/launcher3/BubbleTextView.java
src/com/android/launcher3/badge/BadgeRenderer.java
src/com/android/launcher3/badge/FolderBadgeInfo.java
src/com/android/launcher3/folder/FolderIcon.java
src/com/android/launcher3/graphics/IconPalette.java
src/com/android/launcher3/notification/NotificationKeyData.java
src/com/android/launcher3/popup/PopupContainerWithArrow.java
src/com/android/launcher3/popup/PopupDataProvider.java