mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
getItemCountが0でハードコーディングされていたので修正
This commit is contained in:
parent
d714aef47f
commit
13496ba454
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user