From 960f02d0e7549088d15b74bd11628eb987c77a74 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Tue, 13 Sep 2016 12:51:57 +0100 Subject: [Android] Fix warnings (#346) --- Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs') diff --git a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs index adb27f77..c8795c6a 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 -- cgit v1.2.3