mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
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:
commit
3f7889dac0
2 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue