Skip to content

Commit

Permalink
Fix crash relaunching App from sharing on Android (#10457)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz authored Oct 4, 2022
1 parent 3c7ff86 commit 9b4ab81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/src/Handlers/Layout/LayoutHandler.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public void Remove(IView child)

void Clear(LayoutViewGroup platformView)
{
platformView.RemoveAllViews();
if (platformView != null && !platformView.IsDisposed())
platformView.RemoveAllViews();
}

public void Clear()
Expand Down

0 comments on commit 9b4ab81

Please sign in to comment.