aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/MainFragment.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/MainFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/MainFragment.java
index e7c7f1fb..0d7e8af1 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/MainFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/MainFragment.java
@@ -380,11 +380,18 @@ public class MainFragment extends SelectRecyclerFragment<Integer> {
footer += "\nLogs: " + logcat;
footer += "\nBuild Number: " + packageInfo.versionCode;
- Intent email = new Intent(Intent.ACTION_SENDTO,
- Uri.fromParts("mailto", "dsub.android@gmail.com", null));
- email.putExtra(Intent.EXTRA_SUBJECT, "DSub " + packageInfo.versionName + " Error Logs");
- email.putExtra(Intent.EXTRA_TEXT, "Describe the problem here\n\n\n" + footer);
- startActivity(email);
+
+ Intent selectorIntent = new Intent(Intent.ACTION_SENDTO);
+ selectorIntent.setData(Uri.parse("mailto:"));
+
+ final Intent emailIntent = new Intent(Intent.ACTION_SEND);
+ emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"dsub.android@gmail.com"});
+ emailIntent.putExtra(Intent.EXTRA_SUBJECT, "DSub " + packageInfo.versionName + " Error Logs");
+ emailIntent.putExtra(Intent.EXTRA_TEXT, "Describe the problem here\n\n\n" + footer);
+ emailIntent.setSelector( selectorIntent );
+
+ startActivity(Intent.createChooser(emailIntent, "Send log..."));
+
}
}.execute();
} catch(Exception e) {}