From: kingces95 Date: Wed, 19 Apr 2017 16:50:07 +0000 (-0400) Subject: calling API not available in all versions (#877) X-Git-Tag: accepted/tizen/4.0/unified/20170816.011313~262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2dba30562cb4db7114207b7095d5660a4ca616a7;p=platform%2Fupstream%2Fxamarin-forms.git calling API not available in all versions (#877) --- diff --git a/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Android/FastRenderers/ButtonRenderer.cs index ae550a6..4881c3b 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);