From 53ae1dadb870ce3a015cf716f582b88d50e01246 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 02:02:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/component/viewer/ViewerContainerFragment.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java index 28adb7d6..ed4b0109 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java @@ -132,10 +132,8 @@ public class ViewerContainerFragment extends Fragment { } else { logger.debug("ViewerContainerFragment", "hasCombined: " + hasCombined); tabLayout.setVisibility(View.GONE); - ArrayList pageIdList = new ArrayList<>(); - ArrayList pageTitleList = new ArrayList<>(); - pageIdList.add(documentId); - pageTitleList.add(documentName); + viewerViewPagerAdapter.setFragmentTargetIdList(new ArrayList(){{add(documentId);}}); // TODO-rca: 読みにくいので直接追加できるようにする + viewerViewPagerAdapter.setFragmentTitleList(new ArrayList(){{add(documentName);}}); viewerViewPagerAdapter.notifyItemRangeChanged(0, 1); }