Fix contact. for real.

This commit is contained in:
Phillip Thelen 2015-12-09 03:27:40 +01:00
parent 4d7e02e19e
commit e40973b7d8

View file

@ -81,11 +81,9 @@ public class AboutFragment extends Fragment {
}
private void sendEmail(String subject) {
Intent emailIntent = new Intent(Intent.ACTION_SENDTO);
emailIntent.setData(Uri.parse("mailto:"));
emailIntent.setType("text/plain");
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"mobile@habitica.com"});
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
"mailto","mobile@habitica.com", null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
startActivity(Intent.createChooser(emailIntent, "Send email..."));
}
}