Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix crash navigating in Shell (#14577)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Sep 8, 2021
1 parent 5f284f9 commit 81b5238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Xamarin.Forms.Core/Shell/ShellNavigationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public async Task GoToAsync(ShellNavigationParameters shellNavigationParameters)
}
else
{
await _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping);
await Device.InvokeOnMainThreadAsync(() =>
{
return _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, queryData, animate, isRelativePopping);
});
}

(_shell as IShellController).UpdateCurrentState(source);
Expand Down

0 comments on commit 81b5238

Please sign in to comment.