From 7291c31c1beeadfbff2469678144d92dc5d21119 Mon Sep 17 00:00:00 2001 From: HavenDV Date: Tue, 2 Jan 2024 18:41:48 +0400 Subject: [PATCH] fix: Fixed missing check for Options.ShowDownload. --- .../Platforms/Android/InstallStateUpdatedListener.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Maui.Android.InAppUpdates/Platforms/Android/InstallStateUpdatedListener.cs b/src/libs/Maui.Android.InAppUpdates/Platforms/Android/InstallStateUpdatedListener.cs index 8c038c9..105dde8 100644 --- a/src/libs/Maui.Android.InAppUpdates/Platforms/Android/InstallStateUpdatedListener.cs +++ b/src/libs/Maui.Android.InAppUpdates/Platforms/Android/InstallStateUpdatedListener.cs @@ -35,7 +35,8 @@ public void OnStateUpdate(InstallState state) case InstallStatus.Canceled: break; - case InstallStatus.Downloading: + case InstallStatus.Downloading + when Handler.Options.ShowDownload: { var bytesDownloaded = state.BytesDownloaded(); var totalBytesToDownload = state.TotalBytesToDownload() + 1;