コメント追加

This commit is contained in:
r-ca 2024-01-29 02:02:58 +09:00
parent 53ae1dadb8
commit 8b1af8e2d7
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -117,7 +117,8 @@ public class ViewerContainerFragment extends Fragment {
Toolbar toolbar = view.findViewById(R.id.toolbar); Toolbar toolbar = view.findViewById(R.id.toolbar);
initToolbar(toolbar, true, documentName); initToolbar(toolbar, true, documentName);
if (this.hasCombined) { // Get document page
if (this.hasCombined) { // 結合親の場合
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());
@ -129,7 +130,7 @@ public class ViewerContainerFragment extends Fragment {
viewerViewPagerAdapter.notifyItemRangeChanged(0, combinedDocumentToxiList.size()); viewerViewPagerAdapter.notifyItemRangeChanged(0, combinedDocumentToxiList.size());
}); });
} else { } else { // それ以外の場合
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined); logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
tabLayout.setVisibility(View.GONE); tabLayout.setVisibility(View.GONE);
viewerViewPagerAdapter.setFragmentTargetIdList(new ArrayList<String>(){{add(documentId);}}); // TODO-rca: 読みにくいので直接追加できるようにする viewerViewPagerAdapter.setFragmentTargetIdList(new ArrayList<String>(){{add(documentId);}}); // TODO-rca: 読みにくいので直接追加できるようにする