Group member dialog tap takes you to recipient preference

Fixes #7463
This commit is contained in:
Moxie Marlinspike 2018-04-03 02:41:06 -07:00
parent e86a9ce7eb
commit 72310ed3c6

View File

@ -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()) {