diff options
author | Tony Wickham <twickham@google.com> | 2017-04-26 18:13:56 -0700 |
---|---|---|
committer | Tony <twickham@google.com> | 2017-04-26 19:39:05 -0700 |
commit | 0530e8c60809afa92b1aa907376f0553ad94d58f (patch) | |
tree | 044b2b2ee2686d2bf1e97f3abe08fcb176a62acd /src/com/android/launcher3/BubbleTextView.java | |
parent | b85f5dfcba3833b2a520e14fb6526de58763444f (diff) | |
download | android_packages_apps_Trebuchet-0530e8c60809afa92b1aa907376f0553ad94d58f.tar.gz android_packages_apps_Trebuchet-0530e8c60809afa92b1aa907376f0553ad94d58f.tar.bz2 android_packages_apps_Trebuchet-0530e8c60809afa92b1aa907376f0553ad94d58f.zip |
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
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index 24d16d7e5..cb40d3d5e 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -473,7 +473,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver { } private boolean hasBadge() { - return (mBadgeInfo != null && mBadgeInfo.getNotificationCount() > 0); + return mBadgeInfo != null; } public void getIconBounds(Rect outBounds) { |