mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
フォルダ名を引数にとるようにした
This commit is contained in:
parent
611c5b516d
commit
04db160548
|
@ -49,6 +49,7 @@ public class LibraryPageFragment extends Fragment {
|
|||
|
||||
// Param
|
||||
private String folderId;
|
||||
private String title;
|
||||
|
||||
@Inject
|
||||
LacertaLibrary lacertaLibrary;
|
||||
|
@ -64,10 +65,11 @@ public class LibraryPageFragment extends Fragment {
|
|||
// Required empty public constructor
|
||||
}
|
||||
|
||||
public static LibraryPageFragment newInstance(String folderId) {
|
||||
public static LibraryPageFragment newInstance(String folderId, String title) {
|
||||
LibraryPageFragment fragment = new LibraryPageFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putString("folderId", folderId);
|
||||
args.putString("title", title);
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
@ -76,6 +78,7 @@ public class LibraryPageFragment extends Fragment {
|
|||
LibraryPageFragment fragment = new LibraryPageFragment();
|
||||
Bundle args = new Bundle();
|
||||
args.putString("folderId", null);
|
||||
args.putString("title", null);
|
||||
fragment.setArguments(args);
|
||||
return fragment;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user