summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-04-19 12:50:07 -0400
committerChris King <kingces95@gmail.com>2017-04-19 13:04:02 -0400
commit2dba30562cb4db7114207b7095d5660a4ca616a7 (patch)
tree82cc00dc531a4a1d37b6fcc52c626a57f17104a5 /Xamarin.Forms.Platform.Android
parentfc778eb9789f50634d48fb9ad127f211b3fcfcc7 (diff)
downloadxamarin-forms-2dba30562cb4db7114207b7095d5660a4ca616a7.tar.gz
xamarin-forms-2dba30562cb4db7114207b7095d5660a4ca616a7.tar.bz2
xamarin-forms-2dba30562cb4db7114207b7095d5660a4ca616a7.zip
calling API not available in all versions (#877)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-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 ae550a64..4881c3bb 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);