From 341b69429801a20a90c42a83a2418894386bf73c Mon Sep 17 00:00:00 2001 From: nero Date: Tue, 16 Jan 2024 10:00:34 +0900 Subject: [PATCH] =?UTF-8?q?ListItemPage=E3=82=92=E5=AE=A3=E8=A8=80=20ListI?= =?UTF-8?q?tem=E3=81=AE=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/feature/library/DocumentAdapter.java | 8 +++++--- .../lacerta/feature/library/LibraryTopFragment.java | 11 ++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java index 987dc903..78e150f1 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java @@ -8,15 +8,17 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; +import java.util.ArrayList; import java.util.List; +import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.document.DocumentMeta; public class DocumentAdapter extends RecyclerView.Adapter { - private List documentMetas; + private ArrayList documentMetas; - public DocumentAdapter(List documentMetas) { + public DocumentAdapter(ArrayList documentMetas) { // nullの場合に例外を発生させる if (documentMetas == null) { throw new IllegalArgumentException("DocumentMetas list cannot be null or empty"); @@ -33,7 +35,7 @@ public class DocumentAdapter extends RecyclerView.Adapter convertToLibraryItems(List metas) { - return LibraryUtils.convertToLibraryItems(metas); - } + }