Skip to content

Commit

Permalink
Android: Fix sending bug report mails starting from Android 11
Browse files Browse the repository at this point in the history
THIS must be the reason why we get almost no reports anymore, lol.
  • Loading branch information
Ghabry committed Feb 24, 2025
1 parent 6c25a26 commit 813d929
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ private void reportBug() {
intent.putExtra(Intent.EXTRA_SUBJECT, "Bug report");
intent.putExtra(Intent.EXTRA_TEXT, getApplicationContext().getString(R.string.report_bug_mail));
intent.putExtra(Intent.EXTRA_STREAM, files);
if (intent.resolveActivity(getPackageManager()) != null) {
try {
startActivity(intent);
} catch (ActivityNotFoundException e) {
Log.e("EasyRPG", "No Mail App found");
}
}).setNegativeButton(R.string.cancel, (dialog, id) -> dialog.cancel());

Expand Down

0 comments on commit 813d929

Please sign in to comment.