Deduplicated code: (almost) always update subviewsHidden after setting state.