Commit 538ed195 authored by Sajal Narang's avatar Sajal Narang Committed by GitHub

Merge pull request #262 from unstablebrainiac/send-email

Fix send email bug for 4.1.2+
parents 3671ede4 f280e2df
...@@ -254,7 +254,7 @@ public class UserFragment extends BackHandledFragment implements TransitionTarge ...@@ -254,7 +254,7 @@ public class UserFragment extends BackHandledFragment implements TransitionTarge
private void mail(String email) { private void mail(String email) {
Intent intent = new Intent(Intent.ACTION_SENDTO); Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:")); intent.setData(Uri.parse("mailto:"));
intent.putExtra(Intent.EXTRA_EMAIL, email); intent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
intent.putExtra(Intent.EXTRA_SUBJECT, "Let's have Coffee!"); intent.putExtra(Intent.EXTRA_SUBJECT, "Let's have Coffee!");
startActivity(Intent.createChooser(intent, "Send Email")); startActivity(Intent.createChooser(intent, "Send Email"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment