Merge pull request #677 from cake-tech/fix-not-opening-send-screen-from-uri

Fix Send screen not opening from URI
This commit is contained in:
Omar Hatem 2022-12-15 19:57:14 +02:00 committed by GitHub
commit 3f7889dac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -16,7 +16,7 @@
android:requestLegacyExternalStorage="true"> android:requestLegacyExternalStorage="true">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:launchMode="singleTop" android:launchMode="singleInstance"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"

View file

@ -125,6 +125,12 @@ class RootState extends State<Root> with WidgetsBindingObserver {
launchUri = null; launchUri = null;
}); });
}); });
} else if (launchUri != null) {
widget.navigatorKey.currentState?.pushNamed(
Routes.send,
arguments: PaymentRequest.fromUri(launchUri),
);
launchUri = null;
} }
return WillPopScope(onWillPop: () async => false, child: widget.child); return WillPopScope(onWillPop: () async => false, child: widget.child);