summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs
index 14046448..43f042b1 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/ButtonRenderer.cs
@@ -195,9 +195,7 @@ namespace Xamarin.Forms.Platform.Android
return;
if (_defaultDrawable != null)
-#pragma warning disable 618
- Control.SetBackgroundDrawable(_defaultDrawable);
-#pragma warning restore 618
+ Control.SetBackground(_defaultDrawable);
_drawableEnabled = false;
}
@@ -214,9 +212,7 @@ namespace Xamarin.Forms.Platform.Android
if (_defaultDrawable == null)
_defaultDrawable = Control.Background;
-#pragma warning disable 618
- Control.SetBackgroundDrawable(_backgroundDrawable);
-#pragma warning restore 618
+ Control.SetBackground(_backgroundDrawable);
_drawableEnabled = true;
}