Skip to content

Commit

Permalink
email intent bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetturk authored Mar 15, 2018
1 parent 8e09958 commit 19d6ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/mehdi/sakout/aboutpage/AboutPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public AboutPage addEmail(String email, String title) {
emailElement.setIconDrawable(R.drawable.about_icon_email);
emailElement.setIconTint(R.color.about_item_icon_color);

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("message/rfc822");
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:"));
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});
emailElement.setIntent(intent);

Expand Down

0 comments on commit 19d6ed8

Please sign in to comment.