From e09708fe13831214ee8781465bbc59231af62025 Mon Sep 17 00:00:00 2001 From: Daniel Eichbaum Date: Wed, 21 Feb 2024 10:44:09 +0100 Subject: [PATCH] Check for Android SDK version --- Mopups/Mopups.Maui/Animations/AnimationHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mopups/Mopups.Maui/Animations/AnimationHelper.cs b/Mopups/Mopups.Maui/Animations/AnimationHelper.cs index 211d20c..12eab4e 100644 --- a/Mopups/Mopups.Maui/Animations/AnimationHelper.cs +++ b/Mopups/Mopups.Maui/Animations/AnimationHelper.cs @@ -8,7 +8,10 @@ public static bool SystemAnimationsEnabled get { #if __ANDROID__ - return Android.Animation.ValueAnimator.AreAnimatorsEnabled(); + if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.O) + { + return Android.Animation.ValueAnimator.AreAnimatorsEnabled(); + } #endif return true; }