Skip to content

Commit

Permalink
add submitItem with position
Browse files Browse the repository at this point in the history
  • Loading branch information
softrunapp committed Nov 16, 2019
1 parent 29fa91f commit 981c73c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ public void submitItems(Collection<? extends ITEM> collection) {
}
}

public void submitItem(ITEM item) {
mDataSet.add(item);
notifyDataSetChanged();
}

public void submitItem(ITEM item, int position) {
mDataSet.add(position, item);
notifyDataSetChanged();
}


protected ITEM getItem(int position) {
return mDataSet.get(position);
}
Expand Down

0 comments on commit 981c73c

Please sign in to comment.