From ce3e38c9c6b30bd0bc7944b814f720dbd1ed07d0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 6 Feb 2019 07:47:44 +0000 Subject: [PATCH] Fixed shortcut address format --- app/src/main/java/eu/faircode/email/ActivityView.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index eb7c988655..97211be9e1 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -83,7 +83,6 @@ import java.util.Locale; import java.util.Properties; import javax.mail.Session; -import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.net.ssl.HttpsURLConnection; @@ -765,8 +764,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB int times = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts.TIMES_CONTACTED)); long last = cursor.getLong(cursor.getColumnIndex(ContactsContract.Contacts.LAST_TIME_CONTACTED)); - InternetAddress address = new InternetAddress(email, name); - Log.i("Shortcut id=" + id + " address=" + address + + Log.i("Shortcut id=" + id + " email=" + email + " starred=" + starred + " times=" + times + " last=" + last); if (starred == 0 && times == 0 && last == 0) @@ -784,7 +782,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB Intent intent = new Intent(this, ActivityCompose.class); intent.setAction(Intent.ACTION_SEND); - intent.setData(Uri.parse("mailto:" + address)); + intent.setData(Uri.parse("mailto:" + email)); shortcuts.add( new ShortcutInfo.Builder(this, Long.toString(id))