Skip to content

Commit

Permalink
Merge pull request #11873 from wordpress-mobile/issue/11820-fix-crash…
Browse files Browse the repository at this point in the history
…-open-external-link

Fix crash on opening external url
  • Loading branch information
planarvoid authored May 12, 2020
2 parents 3b64b0c + 9e925bb commit 47cb966
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 47cb966

Please sign in to comment.