Skip to content

Commit

Permalink
Do less layout churning when invalidating data
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Apr 19, 2024
1 parent 9e51234 commit b2c0f2d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,13 @@ void UpdateEmptyView()
public void InvalidateData()
{
this.PlatformView.InvokeOnMainThread(() => {
layout?.InvalidateLayout();
//layout?.InvalidateLayout();
UpdateEmptyViewVisibility();
PlatformView?.SetNeedsLayout();
//PlatformView?.SetNeedsLayout();
PlatformView?.ReloadData();
PlatformView?.LayoutIfNeeded();
//PlatformView?.LayoutIfNeeded();
});

}
Expand Down

0 comments on commit b2c0f2d

Please sign in to comment.