1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-12 22:33:25 +00:00

[PM-6506] Fix double execution of command on returnType Go (#3039)

cherrypicked from: 4e0a18cce5
This commit is contained in:
André Bispo
2024-02-28 17:52:10 +00:00
parent 6bf7a492c6
commit 36c32fbabd
5 changed files with 30 additions and 6 deletions

View File

@@ -452,7 +452,11 @@ namespace Bit.iOS.Autofill
ThemeManager.ApplyResourcesTo(environmentPage);
if (environmentPage.BindingContext is EnvironmentPageViewModel vm)
{
vm.SubmitSuccessAction = () => DismissViewController(false, () => LaunchHomePage());
vm.SubmitSuccessTask = async () =>
{
await DismissViewControllerAsync(false);
await MainThread.InvokeOnMainThreadAsync(() => LaunchHomePage());
};
vm.CloseAction = () => DismissViewController(false, () => LaunchHomePage());
}