Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 9e10bb9

Browse files
committed
Add disposed check on invalidates
1 parent c736eef commit 9e10bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xamarin.Forms.Platform.Android/Forms.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public SizeRequest GetNativeSize(VisualElement view, double widthConstraint, dou
924924
public void Invalidate(VisualElement visualElement)
925925
{
926926
var renderer = visualElement.GetRenderer();
927-
if (renderer == null)
927+
if (renderer == null || renderer.View.IsDisposed())
928928
{
929929
return;
930930
}

0 commit comments

Comments
 (0)