From 7958ff904a0ca058fb9c76915aaeb4f6c7ef9a54 Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Thu, 14 Oct 2021 10:51:25 +0200 Subject: [PATCH] Revert "Fix crash navigating in Shell (#14577)" (#14730) This reverts commit 81b5238237170e86e53883ed9df4bd11ae32a8cd. --- Xamarin.Forms.Core/Shell/ShellNavigationManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Xamarin.Forms.Core/Shell/ShellNavigationManager.cs b/Xamarin.Forms.Core/Shell/ShellNavigationManager.cs index 8e28a21d1f9..17ef5906f0c 100644 --- a/Xamarin.Forms.Core/Shell/ShellNavigationManager.cs +++ b/Xamarin.Forms.Core/Shell/ShellNavigationManager.cs @@ -163,10 +163,7 @@ public async Task GoToAsync(ShellNavigationParameters shellNavigationParameters) } else { - await Device.InvokeOnMainThreadAsync(() => - { - return _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping); - }); + await _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping); } (_shell as IShellController).UpdateCurrentState(source);