Skip to content

Commit 58b0dbe

Browse files
author
chova_ibook
committed
remove empty error
1 parent b5b4d0d commit 58b0dbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/src/main/java/jp/wasabeef/example/recyclerview/MainAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public MainAdapter(Context context, List<String> dataSet) {
3838
}
3939

4040
public void remove(int position) {
41+
if(mDataSet.isEmpty()){
42+
return;
43+
}
4144
mDataSet.remove(position);
4245
notifyItemRemoved(position);
4346
}

0 commit comments

Comments
 (0)