From ab2c273c4182fbfde927fe4a1bc04106ffa94ad6 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 7 Feb 2019 14:09:18 +0000 Subject: [PATCH] Small behavior improvement --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 6c6261557d..804c1ad9cd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1874,6 +1874,7 @@ public class FragmentCompose extends FragmentBase { void handleFileShare() { final Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setData(Uri.parse("https://github.com/M66B/open-source-email/blob/master/FAQ.md#user-content-faq49")); boolean resolves = (intent.resolveActivity(getContext().getPackageManager()) != null); @@ -1885,6 +1886,7 @@ public class FragmentCompose extends FragmentBase { @Override public void onClick(View v) { startActivity(intent); + finish(); } }); sb.show();