We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d98638 + 49d407e commit 0e3d341Copy full SHA for 0e3d341
maui/src/Core/Legend/AreaBase.cs
@@ -181,16 +181,9 @@ static bool IsAnimationEnabled()
181
{
182
bool isAnimationOn = true;
183
#if ANDROID
184
- try
185
- {
186
- var handler = Application.Current?.Handler;
187
- float scale = Settings.Global.GetFloat(handler?.MauiContext?.Context?.ApplicationContext?.ContentResolver, Settings.Global.AnimatorDurationScale);
188
- isAnimationOn = scale != 0.0f;
189
- }
190
- catch
191
192
- isAnimationOn = false;
193
+ var handler = Application.Current?.Handler;
+ float scale = Settings.Global.GetFloat(handler?.MauiContext?.Context?.ApplicationContext?.ContentResolver, Settings.Global.AnimatorDurationScale, 0.0f);
+ isAnimationOn = scale != 0.0f;
194
#endif
195
return isAnimationOn;
196
}
0 commit comments