1
This commit is contained in:
@@ -20,7 +20,7 @@ import entity.DiscoveryListEntity;
|
||||
|
||||
|
||||
public class BaseRecycleViewAdapter<T1, T2 extends ViewDataBinding> extends RecyclerView.Adapter<BaseRecycleViewAdapter.BaseViewHolder> {
|
||||
private ArrayList<T1> list;
|
||||
private ArrayList<T1> list=new ArrayList<>();
|
||||
private LayoutInflater inflater;
|
||||
private Context context;
|
||||
private AdapterView.OnItemClickListener itemClickListener;
|
||||
@@ -41,7 +41,6 @@ public class BaseRecycleViewAdapter<T1, T2 extends ViewDataBinding> extends Recy
|
||||
|
||||
public void setData(ArrayList<T1> list) {
|
||||
this.list.clear();
|
||||
this.list = new ArrayList<>();
|
||||
this.list.addAll(list);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user