summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/FastRenderers
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-04-19 12:50:07 -0400
committerRui Marinho <me@ruimarinho.net>2017-04-19 17:50:07 +0100
commitb0b43c686d3358a357f6640c6d826502dcfba45d (patch)
tree9d7e59f46b020869cf5c4991cc40ca3dbe174942 /Xamarin.Forms.Platform.Android/FastRenderers
parentbd7db64039e54de18a1f845ac70f748efdf367bc (diff)
downloadxamarin-forms-b0b43c686d3358a357f6640c6d826502dcfba45d.tar.gz
xamarin-forms-b0b43c686d3358a357f6640c6d826502dcfba45d.tar.bz2
xamarin-forms-b0b43c686d3358a357f6640c6d826502dcfba45d.zip
calling API not available in all versions (#877)
Diffstat (limited to 'Xamarin.Forms.Platform.Android/FastRenderers')
-rw-r--r--Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs
index e7550371..05e0471b 100644
--- a/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs
@@ -346,7 +346,8 @@ namespace Xamarin.Forms.Platform.Android.FastRenderers
void Initialize()
{
// Fixes issues with AppCompatButton elevation (z-index)
- StateListAnimator = null;
+ if (Forms.IsLollipopOrNewer)
+ StateListAnimator = null;
SoundEffectsEnabled = false;
SetOnClickListener(this);