fixed pending share race error on warm app start

This commit is contained in:
2026-07-02 15:28:05 +02:00
parent 4bc7ffd37a
commit 32f7c311bc
9 changed files with 125 additions and 9 deletions
@@ -40,7 +40,7 @@ class ShareTargetPage extends StatelessWidget {
@override
Widget build(BuildContext context) => PopScope(
onPopInvokedWithResult: (didPop, _) {
if (didPop) ShareIntentListener.instance.clear();
if (didPop) ShareIntentListener.instance.clear(ifCurrent: share);
},
child: Scaffold(
appBar: AppBar(title: Text(_appBarTitle())),