Skip to content

Commit

Permalink
Fix the compat LayoutRenderer (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava committed Apr 6, 2022
1 parent 22cc9f4 commit 968b8d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected override void Dispose(bool disposing)
_layoutUpdatedRegistered = false;
}

if (Forms.UseSkiaSharp)
if (Forms.UseSkiaSharp && Control != null)
{
Control.LayoutUpdated -= OnBackgroundLayoutUpdated;

Expand Down

0 comments on commit 968b8d5

Please sign in to comment.