mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Adding support for requesting addition of shortcut/widget
on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user