private void completeSetCustomShortcut(Intent data) {
   Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
   /* preserve shortcut name, we want to restore it later */
   intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME));
   String appUri = intent.toUri(0);
   appUri =
       appUri.replaceAll(
           "com.android.contacts.action.QUICK_CONTACT", "android.intent.action.VIEW");
   mListener.shortcutPicked(appUri, getFriendlyShortcutName(intent), false);
 }
 private void completeSetCustomApp(Intent data) {
   mListener.shortcutPicked(data.toUri(0), getFriendlyActivityName(data, false), true);
 }