From 0645f14638f7f73bfeb5006fbce852b8b8821223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Su=C3=A1rez?= Date: Thu, 16 Feb 2023 12:42:36 +0100 Subject: [PATCH] Added pending changes in Android AlertManager (#11989) --- .../src/Core/Platform/AlertManager/AlertManager.Android.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs b/src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs index fb5456e4a1cd..62016fae08f8 100644 --- a/src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs +++ b/src/Controls/src/Core/Platform/AlertManager/AlertManager.Android.cs @@ -94,6 +94,12 @@ public void ResetBusyCount() void OnPageBusy(IView sender, bool enabled) { + // Verify that the page making the request is part of this activity + if (!PageIsInThisContext(sender)) + { + return; + } + _busyCount = Math.Max(0, enabled ? _busyCount + 1 : _busyCount - 1); UpdateProgressBarVisibility(_busyCount > 0);