getItemCountが0でハードコーディングされていたので修正

This commit is contained in:
r-ca 2023-12-18 01:50:43 +09:00
parent d714aef47f
commit 13496ba454
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -24,13 +24,13 @@ public class DebugMenuDocumentListItemAdapter extends RecyclerView.Adapter<Debug
@NonNull
@Override
public DebugMenuDocumentListItemAdapter.DebugMenuDocumentListItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
public DebugMenuDocumentListItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_debug_menu_document, parent, false);
return new DebugMenuDocumentListItemViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull DebugMenuDocumentListItemAdapter.DebugMenuDocumentListItemViewHolder holder, int position) {
public void onBindViewHolder(@NonNull DebugMenuDocumentListItemViewHolder holder, int position) {
DebugMenuDocumentListItem item = debugMenuDocumentListItems.get(position);
// Set title
@ -47,7 +47,7 @@ public class DebugMenuDocumentListItemAdapter extends RecyclerView.Adapter<Debug
@Override
public int getItemCount() {
return 0;
return debugMenuDocumentListItems.size();
}
public class DebugMenuDocumentListItemViewHolder extends RecyclerView.ViewHolder {