mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
parent
e86a9ce7eb
commit
72310ed3c6
@ -3,7 +3,6 @@ package org.thoughtcrime.securesms;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Rect;
|
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.provider.ContactsContract;
|
import android.provider.ContactsContract;
|
||||||
import android.support.v7.app.AlertDialog;
|
import android.support.v7.app.AlertDialog;
|
||||||
@ -66,9 +65,10 @@ public class GroupMembersDialog extends AsyncTask<Void, Void, List<Recipient>> {
|
|||||||
Recipient recipient = groupMembers.get(item);
|
Recipient recipient = groupMembers.get(item);
|
||||||
|
|
||||||
if (recipient.getContactUri() != null) {
|
if (recipient.getContactUri() != null) {
|
||||||
ContactsContract.QuickContact.showQuickContact(context, new Rect(0,0,0,0),
|
Intent intent = new Intent(context, RecipientPreferenceActivity.class);
|
||||||
recipient.getContactUri(),
|
intent.putExtra(RecipientPreferenceActivity.ADDRESS_EXTRA, recipient.getAddress());
|
||||||
ContactsContract.QuickContact.MODE_LARGE, null);
|
|
||||||
|
context.startActivity(intent);
|
||||||
} else {
|
} else {
|
||||||
final Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
|
final Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
|
||||||
if (recipient.getAddress().isEmail()) {
|
if (recipient.getAddress().isEmail()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user