Make sure Forms is loaded when not using a splashscreen

This commit is contained in:
Martijn van Dijk 2018-03-26 17:09:15 +02:00
Родитель de9ec5ea4a
Коммит 1b8d170570
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -108,11 +108,13 @@ namespace MvvmCross.Forms.Platforms.Android.Views
protected virtual void RunAppStart(Bundle bundle)
{
InitializeForms(bundle);
var startup = Mvx.Resolve<IMvxAppStart>();
if(!startup.IsStarted)
startup.Start(GetAppStartHint(bundle));
InitializeForms(bundle);
InitializeApplication();
}
protected virtual object GetAppStartHint(object hint = null)
@ -131,7 +133,10 @@ namespace MvvmCross.Forms.Platforms.Android.Views
{
Xamarin.Forms.Application.Current = FormsApplication;
}
}
public virtual void InitializeApplication()
{
LoadApplication(FormsApplication);
}

Просмотреть файл

@ -106,11 +106,13 @@ namespace MvvmCross.Forms.Platforms.Android.Views
protected virtual void RunAppStart(Bundle bundle)
{
InitializeForms(bundle);
var startup = Mvx.Resolve<IMvxAppStart>();
if (!startup.IsStarted)
startup.Start(GetAppStartHint(bundle));
InitializeForms(bundle);
InitializeApplication();
}
protected virtual object GetAppStartHint(object hint = null)
@ -129,7 +131,10 @@ namespace MvvmCross.Forms.Platforms.Android.Views
{
Xamarin.Forms.Application.Current = FormsApplication;
}
}
public virtual void InitializeApplication()
{
LoadApplication(FormsApplication);
}