From 3bf14799b5e59e2db7dd7bd3b1a8c9e9ea21f3ef Mon Sep 17 00:00:00 2001 From: nero Date: Mon, 18 Dec 2023 16:19:50 +0900 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=96=84=E3=81=97=E3=81=9F=E3=82=82?= =?UTF-8?q?=E3=81=AE=E3=81=AE=E3=82=84=E3=81=A3=E3=81=B1=E3=82=8A=E5=AE=9F?= =?UTF-8?q?=E8=A1=8C=E3=81=99=E3=82=8B=E3=81=A8=E3=82=A2=E3=83=97=E3=83=AA?= =?UTF-8?q?=E3=81=8C=E8=90=BD=E3=81=A1=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/feature/library/LibraryTopFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 04000cd6..0ce9b739 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 @@ -65,8 +65,8 @@ public class LibraryTopFragment extends Fragment { Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_library_top, container, false); - - // Use view.findViewById instead of findViewById + + // Use view.findViewById instead of findViewById ListView documentListView = view.findViewById(R.id.document_list); List documentList = new ArrayList<>(); @@ -76,7 +76,7 @@ public class LibraryTopFragment extends Fragment { // レイアウトリソースを指定する(例: simple_list_item_1) ArrayAdapter adapter = new ArrayAdapter<>( - requireActivity(), // 使用するActivityに依存する場合は requireActivity() を使う + getActivity(), // 修正: requireActivity() ではなく getActivity() を使用 android.R.layout.simple_list_item_1, documentList);