Skip to content

Commit

Permalink
Merge pull request #18 from auxility/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
skiff2011 authored Sep 19, 2019
2 parents 6449085 + 4347f38 commit c4e92ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
compileVersion = 28
targetVersion = 28
minVersion = 14
gradlePluginVersion = '3.5.0-beta05'
gradlePluginVersion = '3.5.0'
kotlinVersion = '1.3.31'
materialVersion = '1.0.0'
versionerVersion = '0.4.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public BaseAdapter() {
@Override public boolean addAll(int index, @NonNull Collection<? extends V> c) {
boolean returnValue = items.addAll(index, c);
updateSize();
notifyItemRangeInserted(index, index + c.size());
notifyItemRangeInserted(index, c.size());
return returnValue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Obj
if (states == null) {
states = new ArrayList<>();
}
while (states.size() < position) {
while (states.size() <= position) {
states.add(null);
}
/*we have to avoid state saving in case if item removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public AdapterObserver(Adapter<V> adapter) {
this.items.add(position, this.adapter.get(position));
}

@Override public void notifyOnItemRangeInserted(int positionStart, int positionEnd) {
this.items.addAll(positionStart, getRange(positionStart, positionEnd));
@Override public void notifyOnItemRangeInserted(int positionStart, int count) {
this.items.addAll(positionStart, getRange(positionStart, positionStart + count));
}

@Override public void notifyOnItemRemoved(int position) {
Expand Down

0 comments on commit c4e92ff

Please sign in to comment.