Skip to content

Commit

Permalink
fix: 修复分组过长时下面的TitleView依然Invisible的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Mar 6, 2017
1 parent 45bb227 commit f69d85a
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 f69d85a

Please sign in to comment.