From b1af3f01f25a673c9fb25fd131b6e294997f7350 Mon Sep 17 00:00:00 2001 From: nero Date: Wed, 17 Jan 2024 11:36:38 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A9=E3=83=BC=E3=83=9E=E3=83=83?= =?UTF-8?q?=E3=83=88=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetDropDown.xml | 17 +++++++++++++++++ .../feature/library/DocumentAdapter.java | 4 +++- .../feature/library/LibraryTopFragment.java | 4 ++-- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .idea/deploymentTargetDropDown.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 00000000..dee73277 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file 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 4c270dcd..592fa3d7 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 @@ -13,11 +13,13 @@ import java.util.List; import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.document.DocumentMeta; + //RecyclerView 用のアダプタークラス //アダプターはリストのデータを管理し、それを RecyclerView に表示する public class DocumentAdapter extends RecyclerView.Adapter { - // アダプターが保持するデータ + // アダプターが保持するデータ private ArrayList documentMetas; + //documentMetas アダプターが表示するデータ public DocumentAdapter(ArrayList documentMetas) { // nullの場合でも例外を発生させないよう修正 diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java index 17436908..0b13e9e3 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java @@ -140,6 +140,6 @@ public class LibraryTopFragment extends Fragment { e.printStackTrace(); Toast.makeText(getContext(), "エラーが発生しました: " + e.getMessage(), Toast.LENGTH_LONG).show(); } - return view; - } + return view; + } }