Loading src/com/android/contacts/quickcontact/QuickContactActivity.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -2274,11 +2274,8 @@ public class QuickContactActivity extends ContactsActivity { final String lookupKey = mContactData.getLookupKey(); final String lookupKey = mContactData.getLookupKey(); final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); final Intent intent = new Intent(Intent.ACTION_SEND); final Intent intent = new Intent(Intent.ACTION_SEND); // Even though the data doesn't need to be set for ACTION_SEND, it does need intent.setType(Contacts.CONTENT_VCARD_TYPE); // to be set so that FLAG_GRANT_READ_URI_PERMISSION can create a URI permission grant. intent.setDataAndType(shareUri, Contacts.CONTENT_VCARD_TYPE); intent.putExtra(Intent.EXTRA_STREAM, shareUri); intent.putExtra(Intent.EXTRA_STREAM, shareUri); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); // Launch chooser to share contact via // Launch chooser to share contact via final CharSequence chooseTitle = getText(R.string.share_via); final CharSequence chooseTitle = getText(R.string.share_via); Loading Loading
src/com/android/contacts/quickcontact/QuickContactActivity.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -2274,11 +2274,8 @@ public class QuickContactActivity extends ContactsActivity { final String lookupKey = mContactData.getLookupKey(); final String lookupKey = mContactData.getLookupKey(); final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); final Intent intent = new Intent(Intent.ACTION_SEND); final Intent intent = new Intent(Intent.ACTION_SEND); // Even though the data doesn't need to be set for ACTION_SEND, it does need intent.setType(Contacts.CONTENT_VCARD_TYPE); // to be set so that FLAG_GRANT_READ_URI_PERMISSION can create a URI permission grant. intent.setDataAndType(shareUri, Contacts.CONTENT_VCARD_TYPE); intent.putExtra(Intent.EXTRA_STREAM, shareUri); intent.putExtra(Intent.EXTRA_STREAM, shareUri); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); // Launch chooser to share contact via // Launch chooser to share contact via final CharSequence chooseTitle = getText(R.string.share_via); final CharSequence chooseTitle = getText(R.string.share_via); Loading