From 841330bb23987a60dc1e41fbbfacdf8b51977acb Mon Sep 17 00:00:00 2001 From: kuailezhiyuan <972833608@qq.com> Date: Wed, 28 Jan 2026 00:41:23 +0800 Subject: [PATCH] _ --- .../src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt b/packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt index fb6a107988..5593e3bd04 100644 --- a/packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt +++ b/packages/share_plus/share_plus/android/src/main/kotlin/dev/fluttercommunity/plus/share/Share.kt @@ -131,6 +131,8 @@ internal class Share( Intent.createChooser(shareIntent, title) } + chooserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + // Grant permissions to all apps that can handle the files shared if (fileUris != null) { val resInfoList = getContext().packageManager.queryIntentActivities(