mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-28 01:19:23 +01:00
Merge pull request #3818 from ByteHamster/fix-link-crash
Fixed crash when tapping external link in shownotes
This commit is contained in:
commit
4a4bbe16a6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user