リファクタリング

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

View File

@ -132,10 +132,8 @@ public class ViewerContainerFragment extends Fragment {
} else { } else {
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined); logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
tabLayout.setVisibility(View.GONE); tabLayout.setVisibility(View.GONE);
ArrayList<String> pageIdList = new ArrayList<>(); viewerViewPagerAdapter.setFragmentTargetIdList(new ArrayList<String>(){{add(documentId);}}); // TODO-rca: 読みにくいので直接追加できるようにする
ArrayList<String> pageTitleList = new ArrayList<>(); viewerViewPagerAdapter.setFragmentTitleList(new ArrayList<String>(){{add(documentName);}});
pageIdList.add(documentId);
pageTitleList.add(documentName);
viewerViewPagerAdapter.notifyItemRangeChanged(0, 1); viewerViewPagerAdapter.notifyItemRangeChanged(0, 1);
} }