if (updateLayoutStateNeeded != 0)
if (updateLayoutStateNeeded != 0 || !list.isValid())
  protected void maybeUpdateLayoutState()  {    if (updateLayoutStateNeeded != 0)      {        updateLayoutState();        updateLayoutStateNeeded = 0;      }  }