зеркало из https://github.com/DeGsoft/maui-linux.git
[Android] Fix warnings (#346)
This commit is contained in:
Родитель
d8f939ff6e
Коммит
960f02d0e7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче