コンストラクタに追加

This commit is contained in:
r-ca 2024-01-21 15:16:18 +09:00
parent e9145d491c
commit f5b94e0f6a
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -19,12 +19,15 @@ public class ListItemAdapter extends RecyclerView.Adapter<ListItemAdapter.ListIt
ArrayList<ListItem> listItems; ArrayList<ListItem> listItems;
DocumentSelectListener listener;
public ListItemAdapter(ArrayList<ListItem> listItems){ public ListItemAdapter(ArrayList<ListItem> listItems){
this.listItems = listItems; this.listItems = listItems;
} }
public ListItemAdapter() { public ListItemAdapter(DocumentSelectListener listener){
this.listItems = new ArrayList<>(); this.listItems = new ArrayList<>();
this.listener = listener;
} }
public void setListItems(ArrayList<ListItem> listItems) { public void setListItems(ArrayList<ListItem> listItems) {