Skip to content

Commit

Permalink
add clear method
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceDut committed Jan 29, 2019
1 parent 56a2a6f commit 16f4a4b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ public void setDatas(List<? extends BaseMutableData> datas) {
mDifferHelper.submitList(newList);
}

public void clear() {

mDifferHelper.submitList(null);

}

public <T extends BaseMutableData> void addData(final T data) {
if (data == null) {
Expand All @@ -215,7 +219,6 @@ public void run() {
}
},mDatas);


}


Expand Down

0 comments on commit 16f4a4b

Please sign in to comment.