From 7822fdd3c518109707134e0acada50ab798f0b42 Mon Sep 17 00:00:00 2001 From: r-ca Date: Wed, 24 Jan 2024 17:10:48 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=8D=E3=83=BC=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...rimaryFragment.java => ViewerListFragment.java} | 14 +++++++------- .../component/viewer/ViewerMainActivity.java | 2 +- .../src/main/res/layout/activity_viewer_main.xml | 2 +- .../res/navigation/component_viewer_navigation.xml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) rename component/viewer/src/main/java/one/nem/lacerta/component/viewer/{ViewerPrimaryFragment.java => ViewerListFragment.java} (94%) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerPrimaryFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerListFragment.java similarity index 94% rename from component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerPrimaryFragment.java rename to component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerListFragment.java index 34696b6a..09343c94 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerPrimaryFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerListFragment.java @@ -27,11 +27,11 @@ import one.nem.lacerta.vcs.factory.LacertaVcsFactory; /** * A simple {@link Fragment} subclass. - * Use the {@link ViewerPrimaryFragment#newInstance} factory method to + * Use the {@link ViewerListFragment#newInstance} factory method to * create an instance of this fragment. */ @AndroidEntryPoint -public class ViewerPrimaryFragment extends Fragment { +public class ViewerListFragment extends Fragment { @Inject Document document; @@ -48,12 +48,12 @@ public class ViewerPrimaryFragment extends Fragment { private String documentName; private String revisionId; - public ViewerPrimaryFragment() { + public ViewerListFragment() { // Required empty public constructor } - public static ViewerPrimaryFragment newInstance(String documentId, String documentName) { - ViewerPrimaryFragment fragment = new ViewerPrimaryFragment(); + public static ViewerListFragment newInstance(String documentId, String documentName) { + ViewerListFragment fragment = new ViewerListFragment(); Bundle args = new Bundle(); args.putString("documentId", documentId); args.putString("documentName", documentName); @@ -61,8 +61,8 @@ public class ViewerPrimaryFragment extends Fragment { return fragment; } - public static ViewerPrimaryFragment newInstance(String documentId, String documentName, String revisionId) { - ViewerPrimaryFragment fragment = new ViewerPrimaryFragment(); + public static ViewerListFragment newInstance(String documentId, String documentName, String revisionId) { + ViewerListFragment fragment = new ViewerListFragment(); Bundle args = new Bundle(); args.putString("documentId", documentId); args.putString("documentName", documentName); diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java index 218fe7b0..6c079c11 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java @@ -55,7 +55,7 @@ public class ViewerMainActivity extends AppCompatActivity { // Navigation getSupportFragmentManager().beginTransaction() - .replace(R.id.nav_host_fragment, ViewerPrimaryFragment.newInstance(documentId, documentName)) + .replace(R.id.nav_host_fragment, ViewerListFragment.newInstance(documentId, documentName)) .commit(); } } \ No newline at end of file diff --git a/component/viewer/src/main/res/layout/activity_viewer_main.xml b/component/viewer/src/main/res/layout/activity_viewer_main.xml index 89617f07..f077ceec 100644 --- a/component/viewer/src/main/res/layout/activity_viewer_main.xml +++ b/component/viewer/src/main/res/layout/activity_viewer_main.xml @@ -9,7 +9,7 @@ + app:startDestination="@id/viewerListFragment">