summaryrefslogtreecommitdiffstats
path: root/src_config/com/android/launcher3
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-01-20 08:15:28 -0800
committerTony Wickham <twickham@google.com>2017-01-25 09:51:06 -0800
commit010d2550184179785e4467ff1ffb4f4f4e850ec2 (patch)
tree533ad5bc79d26b10fda6a4ab7a88f5d43643c4ea /src_config/com/android/launcher3
parentc711e6006f380a500a48383b4f079258b47d4a0d (diff)
downloadandroid_packages_apps_Trebuchet-010d2550184179785e4467ff1ffb4f4f4e850ec2.tar.gz
android_packages_apps_Trebuchet-010d2550184179785e4467ff1ffb4f4f4e850ec2.tar.bz2
android_packages_apps_Trebuchet-010d2550184179785e4467ff1ffb4f4f4e850ec2.zip
Add NotificationListener to launcher.
- NotificationListener extends NotificationListenerService, and is added to the manifest. - Added PopupDataProvider, which contains logic for storing and interacting with data that goes into the long-press popup menu (shortcuts and notifications). A follow-up CL will rename DeepShortcutsContainer to a generic PopupContainerWithArrow. - If Launcher has notification access, NotificationListener will get callbacks when notifications are posted and removed; upon receiving these callbacks, NotificationListener passes them to PopupDataProvider via a NotificationsChangedListener interface. - Upon receiving the changed notifications, PopupDataProvider maps them to the corresponding package/user and tells launcher to update relevant icons on the workspace and all apps. This is guarded by FeatureFlags.BADGE_ICONS. Bug: 32410600 Change-Id: I59aeb31a7f92399c9c4b831ab551e51e13f44f5c
Diffstat (limited to 'src_config/com/android/launcher3')
-rw-r--r--src_config/com/android/launcher3/config/FeatureFlags.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src_config/com/android/launcher3/config/FeatureFlags.java b/src_config/com/android/launcher3/config/FeatureFlags.java
index 4cad836c3..ffb86e4cb 100644
--- a/src_config/com/android/launcher3/config/FeatureFlags.java
+++ b/src_config/com/android/launcher3/config/FeatureFlags.java
@@ -39,4 +39,6 @@ public final class FeatureFlags {
public static final boolean LIGHT_STATUS_BAR = false;
// When enabled allows to use any point on the fast scrollbar to start dragging.
public static final boolean LAUNCHER3_DIRECT_SCROLL = true;
+ // When enabled icons are badged with the number of notifications associated with that app.
+ public static final boolean BADGE_ICONS = true;
}