From 2c88095ea3e73116c13a32df829add13f9b96a9e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 3 Sep 2020 22:01:07 +0200 Subject: [PATCH] Contact add/edit improvements --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 8 ++++++-- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 --- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index f6767ee071..a8dbd1e60a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -3418,6 +3418,12 @@ public class AdapterMessage extends RecyclerView.Adapter 0) + name = email.substring(0, at); + } + // https://developer.android.com/training/contacts-provider/modify-data Intent insert = new Intent(); insert.putExtra(ContactsContract.Intents.Insert.EMAIL, email); @@ -3432,8 +3438,6 @@ public class AdapterMessage extends RecyclerView.Adapter