From bafeddebf09b48830c160d570447c5c97abd4683 Mon Sep 17 00:00:00 2001 From: cocoa-dev003 <66989607+cocoa-dev003@users.noreply.github.com> Date: Thu, 2 Jun 2022 11:57:35 +0900 Subject: [PATCH] Fixed the screen information to be updated when returning from the background --- .../ViewModels/HomePage/ExposuresPageViewModel.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ExposuresPageViewModel.cs b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ExposuresPageViewModel.cs index 42e3cd2a0..4a6bc74b9 100644 --- a/Covid19Radar/Covid19Radar/ViewModels/HomePage/ExposuresPageViewModel.cs +++ b/Covid19Radar/Covid19Radar/ViewModels/HomePage/ExposuresPageViewModel.cs @@ -166,6 +166,20 @@ await Share.RequestAsync(new ShareFileRequest } }); + + public override async void OnAppearing() + { + base.OnAppearing(); + + await InitExposures(); + } + + public override async void OnResume() + { + base.OnResume(); + + await InitExposures(); + } } public class ExposureSummary