summaryrefslogtreecommitdiff
path: root/core/src/main/java/de/danoeh
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2020-02-02 11:46:04 +0100
committerGitHub <noreply@github.com>2020-02-02 11:46:04 +0100
commit4a4bbe16a6eace78b3748b187ec23a00d1df64a0 (patch)
treed8c6283ea96bb9863482152df5e09661d66bb611 /core/src/main/java/de/danoeh
parentc16385743c7287b32f9c3cacc300e0225d4fefa8 (diff)
parent05b4945233c1dd04efdf4f3c47e68df6f0a25aef (diff)
downloadAntennaPod-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.java1
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();