diff options
author | daneren2005 <daneren2005@gmail.com> | 2014-04-11 10:27:40 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2014-04-11 10:27:40 -0700 |
commit | 2f3317fb0f5b4c82245d867564489517c6e3ac0a (patch) | |
tree | ca6dfc7cdf9f273b92f9583bd777d6e7fcca9c58 /src/github | |
parent | 9f87e456e2bc77931a10acdc038a945be1cc5359 (diff) | |
download | dsub-2f3317fb0f5b4c82245d867564489517c6e3ac0a.tar.gz dsub-2f3317fb0f5b4c82245d867564489517c6e3ac0a.tar.bz2 dsub-2f3317fb0f5b4c82245d867564489517c6e3ac0a.zip |
Filter out non-email clients in Send Logs
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/MainFragment.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/fragments/MainFragment.java b/src/github/daneren2005/dsub/fragments/MainFragment.java index e87c9d49..d8fa11ac 100644 --- a/src/github/daneren2005/dsub/fragments/MainFragment.java +++ b/src/github/daneren2005/dsub/fragments/MainFragment.java @@ -378,9 +378,8 @@ public class MainFragment extends SubsonicFragment { footer += "\nDevice Name: " + Build.MANUFACTURER + " " + Build.PRODUCT;
footer += "\nROM: " + Build.DISPLAY;
- Intent email = new Intent(android.content.Intent.ACTION_SEND);
- email.setType("text/plain");
- email.putExtra(Intent.EXTRA_EMAIL, new String[] {"dsub.android@gmail.com"});
+ Intent email = new Intent(Intent.ACTION_SENDTO,
+ Uri.fromParts("mailto", "dsub.android@gmail.com", null));
email.putExtra(Intent.EXTRA_SUBJECT, "DSub " + version + " Error Logs");
email.putExtra(Intent.EXTRA_TEXT, "Describe the problem here\n\n\n" + footer);
Uri attachment = Uri.fromFile(logcat);
|