From 142ca57f7656a09548537c3731315e9a49156b11 Mon Sep 17 00:00:00 2001 From: nero Date: Thu, 21 Dec 2023 13:50:08 +0900 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E5=89=8D=E3=82=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=20=E5=89=8D=E3=81=AE=E3=81=AF=E9=81=A9=E5=BD=93=E3=81=A7?= =?UTF-8?q?=E3=82=8F=E3=81=8B=E3=82=8A=E3=81=AB=E3=81=8F=E3=81=84=E5=90=8D?= =?UTF-8?q?=E5=89=8D=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=9F=E3=82=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/feature/library/LibraryArchiveFragment.java | 4 ++-- .../{LibraryXFragment.java => LibraryDocFragment.java} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename feature/library/src/main/java/one/nem/lacerta/feature/library/{LibraryXFragment.java => LibraryDocFragment.java} (88%) diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java index be83d1e1..806afc4f 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java @@ -22,7 +22,7 @@ public class LibraryArchiveFragment extends AppCompatActivity { // 文字をタップしたときの処理 // 移動先のアクティビティを指定 - Intent intent = new Intent(LibraryArchiveFragment.this, LibraryXFragment.class); + Intent intent = new Intent(LibraryArchiveFragment.this, LibraryDocFragment.class); // または、移動先のフラグメントを指定 // Intent intent = new Intent(LibraryArchiveFragment.this, TargetFragment.class); @@ -33,7 +33,7 @@ public class LibraryArchiveFragment extends AppCompatActivity { // 文字をタップしたときの処理 // 移動先のアクティビティを指定 - Intent intent = new Intent(LibraryArchiveFragment.this, LibraryXFragment.class); + Intent intent = new Intent(LibraryArchiveFragment.this, LibraryDocFragment.class); // データを付加する intent.putExtra("key_name", "value_data"); diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryXFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryDocFragment.java similarity index 88% rename from feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryXFragment.java rename to feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryDocFragment.java index ebdc0a3e..b489d496 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryXFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryDocFragment.java @@ -8,7 +8,7 @@ import android.widget.TextView; import androidx.fragment.app.Fragment; -public class LibraryXFragment extends Fragment { +public class LibraryDocFragment extends Fragment { private TextView textView; // フィールドとして TextView を定義 @@ -37,8 +37,8 @@ public class LibraryXFragment extends Fragment { } // Factory method for creating a new instance of the fragment - public static LibraryXFragment newInstance(String data) { - LibraryXFragment fragment = new LibraryXFragment(); + public static LibraryDocFragment newInstance(String data) { + LibraryDocFragment fragment = new LibraryDocFragment(); // フラグメントにデータを渡す Bundle args = new Bundle();