diff --git a/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java b/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java index 2193478..6a87a86 100644 --- a/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java +++ b/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java @@ -53,6 +53,11 @@ public void submitItem(ITEM item, int position) { notifyDataSetChanged(); } + public void clear() { + mDataSet.clear(); + notifyDataSetChanged(); + } + protected ITEM getItem(int position) { return mDataSet.get(position);