Fixed shortcut address format

This commit is contained in:
M66B 2019-02-06 07:47:44 +00:00
parent 83255d83e7
commit ce3e38c9c6
1 changed files with 2 additions and 4 deletions

View File

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