summaryrefslogtreecommitdiffstats
path: root/go
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2019-07-30 11:50:54 -0700
committerPinyao Ting <pinyaoting@google.com>2019-08-01 02:47:24 +0000
commit0cd5bd5f950a044827fce628c5bff163005a3b55 (patch)
tree613cdb9c70d07c90bb4585fc83c9ddc0153e882b /go
parentb647d79e45fdc2d69b0d093497cb718968d307d4 (diff)
downloadandroid_packages_apps_Trebuchet-0cd5bd5f950a044827fce628c5bff163005a3b55.tar.gz
android_packages_apps_Trebuchet-0cd5bd5f950a044827fce628c5bff163005a3b55.tar.bz2
android_packages_apps_Trebuchet-0cd5bd5f950a044827fce628c5bff163005a3b55.zip
Ensure each dot contains only relevant notification to the shortcut
and displays system shortcut when long click on deep shortcut. In this CR we 1) for each shortcut, we filters the notifications to ensure we only get notifications with identical shortcutId. 2) allow system shortcut to be displayed when user long click on a DeepShortcut Bug: 132336512 Change-Id: Idc9eaed55e900ed4027a43ee9c3fd7dc6f4480b2
Diffstat (limited to 'go')
-rw-r--r--go/src/com/android/launcher3/shortcuts/DeepShortcutManager.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/go/src/com/android/launcher3/shortcuts/DeepShortcutManager.java b/go/src/com/android/launcher3/shortcuts/DeepShortcutManager.java
index 6997974b4..5fe350342 100644
--- a/go/src/com/android/launcher3/shortcuts/DeepShortcutManager.java
+++ b/go/src/com/android/launcher3/shortcuts/DeepShortcutManager.java
@@ -49,11 +49,14 @@ public class DeepShortcutManager {
return false;
}
- public static boolean supportsNotificationDots(
- ItemInfo info, List<NotificationKeyData> notifications) {
+ public static boolean supportsDeepShortcuts(ItemInfo info) {
return false;
}
+ public static String getShortcutIdIfApplicable(ItemInfo info) {
+ return null;
+ }
+
/**
* Queries for the shortcuts with the package name and provided ids.
*