Skip to content

Commit

Permalink
Add FLAG_ACTIVITY_NEW_TASK for intent to open external url
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr committed May 8, 2020
1 parent c91056c commit 9e925bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e925bb

Please sign in to comment.