Skip to content

Commit

Permalink
Merge pull request #109 from eichbaum/master
Browse files Browse the repository at this point in the history
Check for api level when checking for animations
  • Loading branch information
LuckyDucko authored Mar 7, 2024
2 parents 6031022 + c497b65 commit 18d440b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mopups/Mopups.Maui/Animations/AnimationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 18d440b

Please sign in to comment.