フォルダ名を引数にとるようにした

This commit is contained in:
ろむねこ 2024-01-22 18:41:24 +09:00
parent 611c5b516d
commit 04db160548
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -49,6 +49,7 @@ public class LibraryPageFragment extends Fragment {
// Param // Param
private String folderId; private String folderId;
private String title;
@Inject @Inject
LacertaLibrary lacertaLibrary; LacertaLibrary lacertaLibrary;
@ -64,10 +65,11 @@ public class LibraryPageFragment extends Fragment {
// Required empty public constructor // Required empty public constructor
} }
public static LibraryPageFragment newInstance(String folderId) { public static LibraryPageFragment newInstance(String folderId, String title) {
LibraryPageFragment fragment = new LibraryPageFragment(); LibraryPageFragment fragment = new LibraryPageFragment();
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("folderId", folderId); args.putString("folderId", folderId);
args.putString("title", title);
fragment.setArguments(args); fragment.setArguments(args);
return fragment; return fragment;
} }
@ -76,6 +78,7 @@ public class LibraryPageFragment extends Fragment {
LibraryPageFragment fragment = new LibraryPageFragment(); LibraryPageFragment fragment = new LibraryPageFragment();
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("folderId", null); args.putString("folderId", null);
args.putString("title", null);
fragment.setArguments(args); fragment.setArguments(args);
return fragment; return fragment;
} }