From c1192f9fa148fccf4c9b838b51338fa030af30f0 Mon Sep 17 00:00:00 2001 From: "Basani, Sahith" Date: Thu, 9 Jul 2026 21:23:30 -0500 Subject: [PATCH] Replace obsolete DisplayAlert with DisplayAlertAsync --- samples/todoapp/TodoApp.MAUI/Services/AlertService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs b/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs index 0fbecb17..a981afcb 100644 --- a/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs +++ b/samples/todoapp/TodoApp.MAUI/Services/AlertService.cs @@ -11,5 +11,5 @@ public interface IAlertService public class AlertService : IAlertService { public Task ShowErrorAlertAsync(string title, string message, string cancel = "OK") - => Application.Current!.Windows[0].Page!.DisplayAlert(title, message, cancel); + => Application.Current!.Windows[0].Page!.DisplayAlertAsync(title, message, cancel); }