diff options
author | Tony Wickham <twickham@google.com> | 2017-01-31 10:49:18 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-02-07 09:48:43 -0800 |
commit | a799bed8038ae97ee8985bc4475756391f7f4f0c (patch) | |
tree | 91e37258f262b8cd147272b3ad779d084ffcb999 /src/com/android/launcher3/notification/NotificationListener.java | |
parent | e1fa0145d36fbefeb397f952cba2689ce537d786 (diff) | |
download | android_packages_apps_Trebuchet-a799bed8038ae97ee8985bc4475756391f7f4f0c.tar.gz android_packages_apps_Trebuchet-a799bed8038ae97ee8985bc4475756391f7f4f0c.tar.bz2 android_packages_apps_Trebuchet-a799bed8038ae97ee8985bc4475756391f7f4f0c.zip |
Show notification icon in place of "1" in badge.
- When notifications update, add the NotificationInfo to the
BadgeInfo if there is only one for an app. BadgeRenderer
will use the NotificationInfo to get the icon to draw.
- When retrieving the icon from the NotificationInfo, we draw
it into a shader (similar to MaskableIconDrawable), which is
rendered by BadgeRenderer.
- For now, we only use the notification icon if it is large.
Bug: 34839959
Bug: 32410600
Bug: 33553066
Change-Id: I31851804008dd15bab75d2759441187830c3265e
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationListener.java')
-rw-r--r-- | src/com/android/launcher3/notification/NotificationListener.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/notification/NotificationListener.java b/src/com/android/launcher3/notification/NotificationListener.java index 3f9a58413..206bb31d4 100644 --- a/src/com/android/launcher3/notification/NotificationListener.java +++ b/src/com/android/launcher3/notification/NotificationListener.java @@ -24,7 +24,6 @@ import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; import android.support.annotation.Nullable; import android.support.v4.util.Pair; -import android.util.Log; import com.android.launcher3.LauncherModel; import com.android.launcher3.config.FeatureFlags; |