Skip to content

Commit

Permalink
Merge pull request #1624 from inRush/master
Browse files Browse the repository at this point in the history
fix expand bug
  • Loading branch information
CymChad authored Oct 18, 2017
2 parents f7bc528 + 822c3b3 commit d296d1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ public long getItemId(int position) {

@SuppressWarnings("unchecked")
private int recursiveExpand(int position, @NonNull List list) {
int count = 0;
int count = list.size();
int pos = position + list.size() - 1;
for (int i = list.size() - 1; i >= 0; i--, pos--) {
if (list.get(i) instanceof IExpandable) {
Expand Down Expand Up @@ -1639,7 +1639,7 @@ public int expand(@IntRange(from = 0) int position, boolean animate, boolean sho
subItemCount += recursiveExpand(position + 1, list);

expandable.setExpanded(true);
subItemCount += list.size();
// subItemCount += list.size();
}
int parentPos = position + getHeaderLayoutCount();
if (shouldNotify) {
Expand Down

0 comments on commit d296d1f

Please sign in to comment.