リファクタリング

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 {
logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined);
tabLayout.setVisibility(View.GONE);
ArrayList<String> pageIdList = new ArrayList<>();
ArrayList<String> pageTitleList = new ArrayList<>();
pageIdList.add(documentId);
pageTitleList.add(documentName);
viewerViewPagerAdapter.setFragmentTargetIdList(new ArrayList<String>(){{add(documentId);}}); // TODO-rca: 読みにくいので直接追加できるようにする
viewerViewPagerAdapter.setFragmentTitleList(new ArrayList<String>(){{add(documentName);}});
viewerViewPagerAdapter.notifyItemRangeChanged(0, 1);
}