From 9e925bbf10c8525b40d2b71f0d545221be7b4749 Mon Sep 17 00:00:00 2001 From: ashiagr Date: Fri, 8 May 2020 19:04:13 +0530 Subject: [PATCH] Add FLAG_ACTIVITY_NEW_TASK for intent to open external url --- .../src/main/java/org/wordpress/android/ui/ActivityLauncher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/ActivityLauncher.java b/WordPress/src/main/java/org/wordpress/android/ui/ActivityLauncher.java index 363142b101c7..b12d4e90379d 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/ActivityLauncher.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/ActivityLauncher.java @@ -980,6 +980,7 @@ public static void loginWithoutMagicLink(Activity activity) { public static void openUrlExternal(Context context, @NonNull String url) { Uri uri = Uri.parse(url); Intent intent = new Intent(Intent.ACTION_VIEW, uri); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); try { // disable deeplinking activity so to not catch WP URLs