Adding support for requesting addition of shortcut/widget

on the workspace.

Bug: 33584624
Change-Id: I664366822fe8088742faff2cce006239ab0771bc
This commit is contained in:
Sunny Goyal committed 2017-01-18 18:38:34 -08:00
1 parent 627006eeb4
commit 278359539c
13 files changed
+451 -28

No files matched your search

@@ -498,7 +498,9 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
DeepShortcutManager sm = DeepShortcutManager.getInstance(context);
List<ShortcutInfoCompat> si = sm.queryForFullDetails(
decoder.launcherIntent.getPackage(),
Arrays.asList(ShortcutInfoCompat.EXTRA_SHORTCUT_ID), decoder.user);
Arrays.asList(decoder.launcherIntent.getStringExtra(
ShortcutInfoCompat.EXTRA_SHORTCUT_ID)),
decoder.user);
if (si.isEmpty()) {
return null;
} else {