Skip to content

Commit

Permalink
Merge pull request YoKeyword#51 from alwaystest/master
Browse files Browse the repository at this point in the history
fix: 修复分组过长时下面的TitleView依然Invisible的情况
  • Loading branch information
YoKeyword committed Mar 7, 2017
2 parents 45bb227 + f69d85a commit 1425e9b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

int viewType = getItemViewType(position);
if (viewType == EntityWrapper.TYPE_TITLE) {
if (View.INVISIBLE == holder.itemView.getVisibility()) {
holder.itemView.setVisibility(View.VISIBLE);
}
mAdapter.onBindTitleViewHolder(holder, item.getIndexTitle());
} else if (viewType == EntityWrapper.TYPE_CONTENT) {
mAdapter.onBindContentViewHolder(holder, item.getData());
Expand Down

0 comments on commit 1425e9b

Please sign in to comment.