diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs index b200e27b1..ab2fb61a0 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/FormsAppCompatActivity.cs @@ -414,10 +414,6 @@ namespace Xamarin.Forms.Platform.Android { _busyCount = Math.Max(0, enabled ? _busyCount + 1 : _busyCount - 1); - if (!Forms.SupportsProgress) - return; - - SetProgressBarIndeterminate(true); UpdateProgressBarVisibility(_busyCount > 0); } @@ -491,8 +487,10 @@ namespace Xamarin.Forms.Platform.Android { if (!Forms.SupportsProgress) return; - +#pragma warning disable 612, 618 + SetProgressBarIndeterminate(true); SetProgressBarIndeterminateVisibility(isBusy); +#pragma warning restore 612, 618 } internal class DefaultApplication : Application diff --git a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs index adb27f774..c8795c6ab 100644 --- a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs +++ b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs @@ -243,11 +243,6 @@ namespace Xamarin.Forms.Platform.Android MessagingCenter.Subscribe(this, Page.BusySetSignalName, (Page sender, bool enabled) => { busyCount = Math.Max(0, enabled ? busyCount + 1 : busyCount - 1); - - if (!Forms.SupportsProgress) - return; - - SetProgressBarIndeterminate(true); UpdateProgressBarVisibility(busyCount > 0); }); @@ -338,7 +333,10 @@ namespace Xamarin.Forms.Platform.Android { if (!Forms.SupportsProgress) return; +#pragma warning disable 612, 618 + SetProgressBarIndeterminate(true); SetProgressBarIndeterminateVisibility(isBusy); +#pragma warning restore 612, 618 } internal class DefaultApplication : Application diff --git a/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs index bd5b80597..8efc41e17 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/WebViewRenderer.cs @@ -201,6 +201,7 @@ namespace Xamarin.Forms.Platform.Android base.OnReceivedError(view, request, error); } + [Obsolete] public override bool ShouldOverrideUrlLoading(AWebView view, string url) { if (_renderer.Element == null)