リネーム

This commit is contained in:
r-ca 2024-01-24 17:10:48 +09:00
parent 778473f898
commit 7822fdd3c5
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
4 changed files with 12 additions and 12 deletions

View File

@ -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);

View File

@ -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();
}
}

View File

@ -9,7 +9,7 @@
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="one.nem.lacerta.component.viewer.ViewerPrimaryFragment"
android:name="one.nem.lacerta.component.viewer.ViewerListFragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:defaultNavHost="true"

View File

@ -3,11 +3,11 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/component_viewer_navigation"
app:startDestination="@id/viewerPrimaryFragment">
app:startDestination="@id/viewerListFragment">
<fragment
android:id="@+id/viewerPrimaryFragment"
android:name="one.nem.lacerta.component.viewer.ViewerPrimaryFragment"
android:id="@+id/viewerListFragment"
android:name="one.nem.lacerta.component.viewer.ViewerListFragment"
android:label="ComponentViewerTopFragment" >
<action
android:id="@+id/action_componentViewerTopFragment_to_viewerVcsRevListFragment"