public PendingInstallShortcutInfo(Intent data,Context context){
  this.data=data;
  mContext=context;
  launchIntent=data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
  label=data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME);
  user=UserHandleCompat.myUserHandle();
  activityInfo=null;
}

public PendingInstallShortcutInfo ( Intent data , Context context ) { this . data = data ; mContext = context ; launchIntent = data . getParcelableExtra ( Intent . EXTRA_SHORTCUT_INTENT ) ; label = data . getStringExtra ( Intent . EXTRA_SHORTCUT_NAME ) ; user = UserHandleCompat . myUserHandle ( ) ; activityInfo = null ; }
initializes a pendinginstallshortcutinfo received from a different app .
