mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-09-09 12:09:25 +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. |  * 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. |  * create an instance of this fragment. | ||||||
|  */ |  */ | ||||||
| @AndroidEntryPoint | @AndroidEntryPoint | ||||||
| public class ViewerPrimaryFragment extends Fragment { | public class ViewerListFragment extends Fragment { | ||||||
| 
 | 
 | ||||||
|     @Inject |     @Inject | ||||||
|     Document document; |     Document document; | ||||||
|  | @ -48,12 +48,12 @@ public class ViewerPrimaryFragment extends Fragment { | ||||||
|     private String documentName; |     private String documentName; | ||||||
|     private String revisionId; |     private String revisionId; | ||||||
| 
 | 
 | ||||||
|     public ViewerPrimaryFragment() { |     public ViewerListFragment() { | ||||||
|         // Required empty public constructor |         // Required empty public constructor | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public static ViewerPrimaryFragment newInstance(String documentId, String documentName) { |     public static ViewerListFragment newInstance(String documentId, String documentName) { | ||||||
|         ViewerPrimaryFragment fragment = new ViewerPrimaryFragment(); |         ViewerListFragment fragment = new ViewerListFragment(); | ||||||
|         Bundle args = new Bundle(); |         Bundle args = new Bundle(); | ||||||
|         args.putString("documentId", documentId); |         args.putString("documentId", documentId); | ||||||
|         args.putString("documentName", documentName); |         args.putString("documentName", documentName); | ||||||
|  | @ -61,8 +61,8 @@ public class ViewerPrimaryFragment extends Fragment { | ||||||
|         return fragment; |         return fragment; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public static ViewerPrimaryFragment newInstance(String documentId, String documentName, String revisionId) { |     public static ViewerListFragment newInstance(String documentId, String documentName, String revisionId) { | ||||||
|         ViewerPrimaryFragment fragment = new ViewerPrimaryFragment(); |         ViewerListFragment fragment = new ViewerListFragment(); | ||||||
|         Bundle args = new Bundle(); |         Bundle args = new Bundle(); | ||||||
|         args.putString("documentId", documentId); |         args.putString("documentId", documentId); | ||||||
|         args.putString("documentName", documentName); |         args.putString("documentName", documentName); | ||||||
|  | @ -55,7 +55,7 @@ public class ViewerMainActivity extends AppCompatActivity { | ||||||
| 
 | 
 | ||||||
|         // Navigation |         // Navigation | ||||||
|         getSupportFragmentManager().beginTransaction() |         getSupportFragmentManager().beginTransaction() | ||||||
|                 .replace(R.id.nav_host_fragment, ViewerPrimaryFragment.newInstance(documentId, documentName)) |                 .replace(R.id.nav_host_fragment, ViewerListFragment.newInstance(documentId, documentName)) | ||||||
|                 .commit(); |                 .commit(); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | @ -9,7 +9,7 @@ | ||||||
| 
 | 
 | ||||||
|     <androidx.fragment.app.FragmentContainerView |     <androidx.fragment.app.FragmentContainerView | ||||||
|         android:id="@+id/nav_host_fragment" |         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_width="0dp" | ||||||
|         android:layout_height="0dp" |         android:layout_height="0dp" | ||||||
|         app:defaultNavHost="true" |         app:defaultNavHost="true" | ||||||
|  |  | ||||||
|  | @ -3,11 +3,11 @@ | ||||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" |     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||||
|     xmlns:tools="http://schemas.android.com/tools" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     android:id="@+id/component_viewer_navigation" |     android:id="@+id/component_viewer_navigation" | ||||||
|     app:startDestination="@id/viewerPrimaryFragment"> |     app:startDestination="@id/viewerListFragment"> | ||||||
| 
 | 
 | ||||||
|     <fragment |     <fragment | ||||||
|         android:id="@+id/viewerPrimaryFragment" |         android:id="@+id/viewerListFragment" | ||||||
|         android:name="one.nem.lacerta.component.viewer.ViewerPrimaryFragment" |         android:name="one.nem.lacerta.component.viewer.ViewerListFragment" | ||||||
|         android:label="ComponentViewerTopFragment" > |         android:label="ComponentViewerTopFragment" > | ||||||
|         <action |         <action | ||||||
|             android:id="@+id/action_componentViewerTopFragment_to_viewerVcsRevListFragment" |             android:id="@+id/action_componentViewerTopFragment_to_viewerVcsRevListFragment" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user