From 7824102f5c87253805e79d0140359f2721f992b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Tue, 25 Jun 2024 15:51:01 +0400 Subject: [PATCH] android: Restart app after doing channel.db import selection --- src/windows/Welcome/Restore.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/windows/Welcome/Restore.tsx b/src/windows/Welcome/Restore.tsx index 1c3aaffc..0713d779 100644 --- a/src/windows/Welcome/Restore.tsx +++ b/src/windows/Welcome/Restore.tsx @@ -122,6 +122,15 @@ export default function Restore({ navigation }: IProps) { Alert.alert( "Success", "Blixt Wallet needs to be restarted in order to continue with the restore procedure. Close Blixt Wallet now and start it up again.", + [ + { + style: "default", + text: t("buttons.ok", { ns: namespaces.common }), + onPress: async () => { + NativeModules.LndMobileTools.restartApp(); + }, + }, + ], ); return; }