Skip to content

Commit

Permalink
fixbug #1135 #1151
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed May 24, 2017
1 parent 0e6f325 commit a19b518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public PullToRefreshAdapter() {

@Override
protected void convert(BaseViewHolder helper, Status item) {
helper.addOnClickListener(R.id.img).addOnClickListener(R.id.tweetText).addOnClickListener(R.id.tweetName);
switch (helper.getLayoutPosition()%
3){
case 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ public BaseQuickAdapter(@LayoutRes int layoutResId, @Nullable List<T> data) {
}
}

public BaseQuickAdapter() {
this(0, null);
}

public BaseQuickAdapter(@Nullable List<T> data) {
this(0, data);
}
Expand Down Expand Up @@ -1601,7 +1605,7 @@ public int expandAll(int position, boolean init) {
}

public void expandAll() {
for (int i = mData.size() - 1; i >= 0; i--) {
for (int i = mData.size() - 1; i >= 0 + getHeaderLayoutCount(); i--) {
expandAll(i, false, false);
}
}
Expand Down

0 comments on commit a19b518

Please sign in to comment.