Skip to content

Commit

Permalink
Fix a crash when closing the app when running (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Apr 8, 2024
1 parent d2e9d97 commit 62f66e6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ private void UpdateIsAnimationEnabled()
if (!weakThis.TryGetTarget(out var strongThis))
return false;
#if !XAMARIN_FORMS
if (strongThis.Window is null)
return false;
#endif
if (!strongThis.IsLoadedEx())
return false;
strongThis.Invalidate();
return strongThis.IsAnimationEnabled;
Expand Down

0 comments on commit 62f66e6

Please sign in to comment.