diff --git a/maui/src/Core/Legend/AreaBase.cs b/maui/src/Core/Legend/AreaBase.cs index 90ea9c2e..8ced20a5 100644 --- a/maui/src/Core/Legend/AreaBase.cs +++ b/maui/src/Core/Legend/AreaBase.cs @@ -181,16 +181,9 @@ static bool IsAnimationEnabled() { bool isAnimationOn = true; #if ANDROID - try - { - var handler = Application.Current?.Handler; - float scale = Settings.Global.GetFloat(handler?.MauiContext?.Context?.ApplicationContext?.ContentResolver, Settings.Global.AnimatorDurationScale); - isAnimationOn = scale != 0.0f; - } - catch - { - isAnimationOn = false; - } + var handler = Application.Current?.Handler; + float scale = Settings.Global.GetFloat(handler?.MauiContext?.Context?.ApplicationContext?.ContentResolver, Settings.Global.AnimatorDurationScale, 0.0f); + isAnimationOn = scale != 0.0f; #endif return isAnimationOn; }