mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
リネーム
This commit is contained in:
parent
778473f898
commit
7822fdd3c5
|
@ -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);
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user