リファクタリング

This commit is contained in:
r-ca 2024-01-29 02:01:18 +09:00
parent da78f5eef1
commit 7bcb2f07ab
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -121,10 +121,12 @@ public class ViewerContainerFragment extends Fragment {
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
lacertaLibrary.getCombinedDocumentToxiList(documentId).thenAccept(combinedDocumentToxiList -> {
logger.debug("ViewerContainerFragment", "combinedDocumentToxiList: " + combinedDocumentToxiList.size());
ArrayList<String> pageIdList = combinedDocumentToxiList.stream().map(ToxiDocumentModel::getChildDocumentId).collect(Collectors.toCollection(ArrayList::new));
ArrayList<String> pageTitleList = combinedDocumentToxiList.stream().map(ToxiDocumentModel::getTitleCache).collect(Collectors.toCollection(ArrayList::new));
viewerViewPagerAdapter.setFragmentTargetIdList(pageIdList);
viewerViewPagerAdapter.setFragmentTitleList(pageTitleList);
viewerViewPagerAdapter.setFragmentTargetIdList(
combinedDocumentToxiList.stream().map(ToxiDocumentModel::getChildDocumentId).collect(Collectors.toCollection(ArrayList::new)));
viewerViewPagerAdapter.setFragmentTitleList(
combinedDocumentToxiList.stream().map(ToxiDocumentModel::getTitleCache).collect(Collectors.toCollection(ArrayList::new)));
viewerViewPagerAdapter.notifyItemRangeChanged(0, combinedDocumentToxiList.size());
});
} else {