Skip to content

Commit

Permalink
Add new task flag for intent chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Oct 12, 2021
1 parent 05e3709 commit 6912f45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public static boolean share(@Nullable Context context, @Nullable String title,

if (DynamicIntentUtils.isActivityResolved(context,
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))) {
context.startActivity(Intent.createChooser(intent, title));
context.startActivity(Intent.createChooser(intent, title)
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));

return true;
}
Expand Down

0 comments on commit 6912f45

Please sign in to comment.