From 0530e8c60809afa92b1aa907376f0553ad94d58f Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Wed, 26 Apr 2017 18:13:56 -0700 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/BubbleTextView.java') 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) { -- cgit v1.2.3