diff options
author | Rui Marinho <me@ruimarinho.net> | 2016-09-13 13:18:03 +0100 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-09-13 13:18:03 +0100 |
commit | 6fa569cfda33d6875896788bba274a313a24fac2 (patch) | |
tree | 35a49d9322afeb1269b13333d8adf4548cd34a7b /Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs | |
parent | 960f02d0e7549088d15b74bd11628eb987c77a74 (diff) | |
download | xamarin-forms-6fa569cfda33d6875896788bba274a313a24fac2.tar.gz xamarin-forms-6fa569cfda33d6875896788bba274a313a24fac2.tar.bz2 xamarin-forms-6fa569cfda33d6875896788bba274a313a24fac2.zip |
Revert "[Android] Fix warnings (#346)"
This reverts commit 960f02d0e7549088d15b74bd11628eb987c77a74.
Diffstat (limited to 'Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs index c8795c6a..adb27f77 100644 --- a/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs +++ b/Xamarin.Forms.Platform.Android/FormsApplicationActivity.cs @@ -243,6 +243,11 @@ 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); }); @@ -333,10 +338,7 @@ 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 |