fixe la fenetre d'alerte

This commit is contained in:
2017-02-22 14:39:57 +01:00
parent 2cfde938e2
commit 8e89e2ecbd

View File

@ -334,7 +334,7 @@ namespace ZicMoove
public static Task<bool> DisplayAlert(string title, string message, string yes = "OK", string no = null) public static Task<bool> DisplayAlert(string title, string message, string yes = "OK", string no = null)
{ {
var currentPage = ((NavigationPage)Current.MainPage).CurrentPage; var currentPage = Navigation.NavigationStack.Last();
if (no == null) if (no == null)
{ {
return currentPage.DisplayAlert(title, message, yes).ContinueWith(task => true); return currentPage.DisplayAlert(title, message, yes).ContinueWith(task => true);