commit | 869a97da73504a01a51771a7ef96a9380fcd2d12 | [log] [tgz] |
---|---|---|
author | Tony <twickham@google.com> | Fri Jun 02 12:18:46 2017 -0700 |
committer | Tony <twickham@google.com> | Fri Jun 02 12:18:46 2017 -0700 |
tree | 29ab6e0f4eb10c4b86253ce8f7ad164eba906b35 | |
parent | acaf5b3a37af11b40166c10e856175bb96cb1476 [diff] |
Promise icons don't support popup Bug: 62253847 Change-Id: I1123f3d1efad65e74957b1404b5b2c95ba392713
diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutManager.java b/src/com/android/launcher3/shortcuts/DeepShortcutManager.java index df7f695..5ce78dc 100644 --- a/src/com/android/launcher3/shortcuts/DeepShortcutManager.java +++ b/src/com/android/launcher3/shortcuts/DeepShortcutManager.java
@@ -65,8 +65,10 @@ } public static boolean supportsShortcuts(ItemInfo info) { + boolean isItemPromise = info instanceof com.android.launcher3.ShortcutInfo + && ((com.android.launcher3.ShortcutInfo) info).isPromise(); return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION - && !info.isDisabled(); + && !info.isDisabled() && !isItemPromise; } public boolean wasLastCallSuccess() {