fixed pending share race error on warm app start
This commit is contained in:
@@ -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())),
|
||||
|
||||
Reference in New Issue
Block a user