mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Contact add/edit improvements
This commit is contained in:
@@ -7155,7 +7155,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
}
|
||||
|
||||
private void onPickContact(Uri contactUri) {
|
||||
String name = kv.get("name");
|
||||
String email = kv.get("email");
|
||||
|
||||
// This requires contacts permission
|
||||
@@ -7164,8 +7163,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
|
||||
Intent edit = new Intent();
|
||||
edit.putExtra(ContactsContract.Intents.Insert.EMAIL, email);
|
||||
if (!TextUtils.isEmpty(name))
|
||||
edit.putExtra(ContactsContract.Intents.Insert.NAME, name);
|
||||
edit.setAction(Intent.ACTION_EDIT);
|
||||
edit.setDataAndTypeAndNormalize(lookupUri, ContactsContract.Contacts.CONTENT_ITEM_TYPE);
|
||||
startActivity(edit);
|
||||
|
||||
Reference in New Issue
Block a user