summaryrefslogtreecommitdiffstats
path: root/src_shortcuts_overrides
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2019-07-26 12:28:38 -0700
committerPinyao Ting <pinyaoting@google.com>2019-08-05 20:41:58 -0700
commit49a3e699f9c5dfbd220681c17037621751ffe933 (patch)
treeef90a834a3b1a4ff9c20cecc40cf8067d9588a81 /src_shortcuts_overrides
parent1a4b815cd81599063eb97bb9733c0c595ddfffd6 (diff)
downloadandroid_packages_apps_Trebuchet-49a3e699f9c5dfbd220681c17037621751ffe933.tar.gz
android_packages_apps_Trebuchet-49a3e699f9c5dfbd220681c17037621751ffe933.tar.bz2
android_packages_apps_Trebuchet-49a3e699f9c5dfbd220681c17037621751ffe933.zip
show dot in deep shortcuts when notification contains exactly identical
set of person Bug: 132336512 Change-Id: I975524e28168c10a186cdc24b188c161faf433cf
Diffstat (limited to 'src_shortcuts_overrides')
-rw-r--r--src_shortcuts_overrides/com/android/launcher3/shortcuts/DeepShortcutManager.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src_shortcuts_overrides/com/android/launcher3/shortcuts/DeepShortcutManager.java b/src_shortcuts_overrides/com/android/launcher3/shortcuts/DeepShortcutManager.java
index d89502b28..bd7dd86c4 100644
--- a/src_shortcuts_overrides/com/android/launcher3/shortcuts/DeepShortcutManager.java
+++ b/src_shortcuts_overrides/com/android/launcher3/shortcuts/DeepShortcutManager.java
@@ -27,10 +27,6 @@ import android.os.Bundle;
import android.os.UserHandle;
import android.util.Log;
-import com.android.launcher3.ItemInfo;
-import com.android.launcher3.LauncherSettings;
-import com.android.launcher3.WorkspaceItemInfo;
-
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -59,29 +55,6 @@ public class DeepShortcutManager {
mLauncherApps = (LauncherApps) context.getSystemService(Context.LAUNCHER_APPS_SERVICE);
}
- public static boolean supportsShortcuts(ItemInfo info) {
- return isActive(info) && (isApp(info) || isPinnedShortcut(info));
- }
-
- public static boolean supportsDeepShortcuts(ItemInfo info) {
- return isActive(info) && isApp(info);
- }
-
- public static String getShortcutIdIfApplicable(ItemInfo info) {
- return isActive(info) && isPinnedShortcut(info) ?
- ShortcutKey.fromItemInfo(info).getId() : null;
- }
-
- private static boolean isApp(ItemInfo info) {
- return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION;
- }
-
- private static boolean isPinnedShortcut(ItemInfo info) {
- return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT
- && info.container != ItemInfo.NO_ID
- && info instanceof WorkspaceItemInfo;
- }
-
/**
* Queries for the shortcuts with the package name and provided ids.
*
@@ -182,12 +155,6 @@ public class DeepShortcutManager {
return shortcutIds;
}
- private static boolean isActive(ItemInfo info) {
- boolean isLoading = info instanceof WorkspaceItemInfo
- && ((WorkspaceItemInfo) info).hasPromiseIconUi();
- return !isLoading && !info.isDisabled();
- }
-
/**
* Query the system server for all the shortcuts matching the given parameters.
* If packageName == null, we query for all shortcuts with the passed flags, regardless of app.