diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2020-02-02 11:46:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 11:46:04 +0100 |
commit | 4a4bbe16a6eace78b3748b187ec23a00d1df64a0 (patch) | |
tree | d8c6283ea96bb9863482152df5e09661d66bb611 /core/src/main/java/de/danoeh | |
parent | c16385743c7287b32f9c3cacc300e0225d4fefa8 (diff) | |
parent | 05b4945233c1dd04efdf4f3c47e68df6f0a25aef (diff) | |
download | AntennaPod-4a4bbe16a6eace78b3748b187ec23a00d1df64a0.zip |
Merge pull request #3818 from ByteHamster/fix-link-crash
Fixed crash when tapping external link in shownotes
Diffstat (limited to 'core/src/main/java/de/danoeh')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/IntentUtils.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/IntentUtils.java b/core/src/main/java/de/danoeh/antennapod/core/util/IntentUtils.java index 656b518bf..959a3e574 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/IntentUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/IntentUtils.java @@ -38,6 +38,7 @@ public class IntentUtils { public static void openInBrowser(Context context, String url) { try { Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); + myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); } catch (ActivityNotFoundException e) { Toast.makeText(context, R.string.pref_no_browser_found, Toast.LENGTH_LONG).show(); |