親要素を追加するように

This commit is contained in:
r-ca 2024-01-28 13:54:09 +09:00
parent b3c1f3a949
commit 3a13b8e4b7
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -110,7 +110,8 @@ public class ViewerContainerFragment extends Fragment {
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
lacertaLibrary.getCombinedDocumentToxiList(documentId).thenAccept(combinedDocumentToxiList -> {
logger.debug("ViewerContainerFragment", "combinedDocumentToxiList: " + combinedDocumentToxiList.size());
for (ToxiDocumentModel toxiDocumentModel : combinedDocumentToxiList) {
viewerViewPagerAdapter.addFragment(ViewerBodyFragment.newInstance(documentId, documentName), documentName); // 親を追加
for (ToxiDocumentModel toxiDocumentModel : combinedDocumentToxiList) { // 子を追加
viewerViewPagerAdapter
.addFragment(ViewerBodyFragment.newInstance(toxiDocumentModel.getChildDocumentId(), toxiDocumentModel.getTitleCache()),
toxiDocumentModel.getTitleCache());