Merge "Fix the issue shortcut cannot pinned in ShareSheet" into udc-dev
This commit is contained in:
@@ -2547,10 +2547,7 @@ public class ShortcutService extends IShortcutService.Stub {
|
|||||||
enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_APP_PREDICTIONS,
|
enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_APP_PREDICTIONS,
|
||||||
"getShareTargets");
|
"getShareTargets");
|
||||||
final ComponentName chooser = injectChooserActivity();
|
final ComponentName chooser = injectChooserActivity();
|
||||||
final String pkg = (chooser != null
|
final String pkg = chooser != null ? chooser.getPackageName() : mContext.getPackageName();
|
||||||
&& mPackageManagerInternal.getComponentEnabledSetting(chooser,
|
|
||||||
injectBinderCallingUid(), userId) == PackageManager.COMPONENT_ENABLED_STATE_ENABLED)
|
|
||||||
? chooser.getPackageName() : mContext.getPackageName();
|
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
throwIfUserLockedL(userId);
|
throwIfUserLockedL(userId);
|
||||||
final List<ShortcutManager.ShareShortcutInfo> shortcutInfoList = new ArrayList<>();
|
final List<ShortcutManager.ShareShortcutInfo> shortcutInfoList = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user