mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-29 19:13:16 +00:00
親要素を追加するように
This commit is contained in:
parent
b3c1f3a949
commit
3a13b8e4b7
|
@ -110,7 +110,8 @@ public class ViewerContainerFragment extends Fragment {
|
||||||
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
|
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
|
||||||
lacertaLibrary.getCombinedDocumentToxiList(documentId).thenAccept(combinedDocumentToxiList -> {
|
lacertaLibrary.getCombinedDocumentToxiList(documentId).thenAccept(combinedDocumentToxiList -> {
|
||||||
logger.debug("ViewerContainerFragment", "combinedDocumentToxiList: " + combinedDocumentToxiList.size());
|
logger.debug("ViewerContainerFragment", "combinedDocumentToxiList: " + combinedDocumentToxiList.size());
|
||||||
for (ToxiDocumentModel toxiDocumentModel : combinedDocumentToxiList) {
|
viewerViewPagerAdapter.addFragment(ViewerBodyFragment.newInstance(documentId, documentName), documentName); // 親を追加
|
||||||
|
for (ToxiDocumentModel toxiDocumentModel : combinedDocumentToxiList) { // 子を追加
|
||||||
viewerViewPagerAdapter
|
viewerViewPagerAdapter
|
||||||
.addFragment(ViewerBodyFragment.newInstance(toxiDocumentModel.getChildDocumentId(), toxiDocumentModel.getTitleCache()),
|
.addFragment(ViewerBodyFragment.newInstance(toxiDocumentModel.getChildDocumentId(), toxiDocumentModel.getTitleCache()),
|
||||||
toxiDocumentModel.getTitleCache());
|
toxiDocumentModel.getTitleCache());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user