Setter, コンストラクタ追加

This commit is contained in:
r-ca 2024-01-21 15:06:48 +09:00
parent 0accd4fa79
commit 5cc718e35d
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -21,6 +21,14 @@ public class ViewerBodyAdapter extends RecyclerView.Adapter<ViewerBodyAdapter.Vi
this.pages = pages; this.pages = pages;
} }
public ViewerBodyAdapter(){
}
public void setPages(ArrayList<Page> pages){
this.pages = pages;
}
@NonNull @NonNull
@Override @Override
public ViewerBodyAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { public ViewerBodyAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {