diff options
author | kingces95 <kingces95@users.noreply.github.com> | 2017-04-19 12:50:07 -0400 |
---|---|---|
committer | Chris King <kingces95@gmail.com> | 2017-04-19 13:04:02 -0400 |
commit | 2dba30562cb4db7114207b7095d5660a4ca616a7 (patch) | |
tree | 82cc00dc531a4a1d37b6fcc52c626a57f17104a5 /Xamarin.Forms.Platform.Android | |
parent | fc778eb9789f50634d48fb9ad127f211b3fcfcc7 (diff) | |
download | xamarin-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.cs | 3 |
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); |