Make sure error page is run on UI thread
This commit is contained in:
Родитель
6f31b95c53
Коммит
8d216a91f4
|
@ -20,7 +20,10 @@ namespace Blaxamarin.Framework
|
|||
{
|
||||
Debug.WriteLine($"{nameof(HandleException)} called with '{exception?.GetType().Name}': '{exception?.Message}'");
|
||||
|
||||
XF.Application.Current.MainPage = GetErrorPageForException(exception);
|
||||
XF.Device.InvokeOnMainThreadAsync(() =>
|
||||
{
|
||||
XF.Application.Current.MainPage = GetErrorPageForException(exception);
|
||||
});
|
||||
}
|
||||
|
||||
private static XF.ContentPage GetErrorPageForException(Exception exception)
|
||||
|
|
Загрузка…
Ссылка в новой задаче