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
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user