We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e9d97 commit 62f66e6Copy full SHA for 62f66e6
source/SkiaSharp.Extended.UI/Controls/SKAnimatedSurfaceView.shared.cs
@@ -82,6 +82,14 @@ private void UpdateIsAnimationEnabled()
82
if (!weakThis.TryGetTarget(out var strongThis))
83
return false;
84
85
+#if !XAMARIN_FORMS
86
+ if (strongThis.Window is null)
87
+ return false;
88
+#endif
89
+
90
+ if (!strongThis.IsLoadedEx())
91
92
93
strongThis.Invalidate();
94
95
return strongThis.IsAnimationEnabled;
0 commit comments