This commit is contained in:
Jason Smith 2016-09-30 11:59:00 -07:00
Родитель 353525e293
Коммит 686eb6d0f4
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -119,18 +119,18 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
public override void OnPause()
{
Page currentPage = (Application.Current.MainPage as IPageContainer<Page>)?.CurrentPage;
if (currentPage == null || currentPage == PageController)
PageController?.SendDisappearing();
Page currentPage = (Application.Current.MainPage as IPageContainer<Page>)?.CurrentPage;
if (currentPage == null || currentPage == PageController)
PageController?.SendDisappearing();
base.OnPause();
}
public override void OnResume()
{
Page currentPage = (Application.Current.MainPage as IPageContainer<Page>)?.CurrentPage;
if (UserVisibleHint && (currentPage == null || currentPage == PageController))
PageController?.SendAppearing();
Page currentPage = (Application.Current.MainPage as IPageContainer<Page>)?.CurrentPage;
if (UserVisibleHint && (currentPage == null || currentPage == PageController))
PageController?.SendAppearing();
base.OnResume();
}