From 19f6eb1683cf4d437fd1d04f3b31cdad206b3059 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 02:38:47 +0900 Subject: [PATCH] =?UTF-8?q?Adapter=E3=82=92=E3=82=A4=E3=83=B3=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E5=A4=89=E6=95=B0=E3=81=AB=E6=8C=81=E3=81=9F?= =?UTF-8?q?=E3=81=9B=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/component/viewer/ViewerContainerFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 5c3a67a8..7054fe87 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 @@ -57,6 +57,7 @@ public class ViewerContainerFragment extends Fragment { private String documentId; private String documentName; private boolean hasCombined = false; + private ViewerViewPagerAdapter viewerViewPagerAdapter; public ViewerContainerFragment() { // Required empty public constructor @@ -107,7 +108,7 @@ public class ViewerContainerFragment extends Fragment { ViewPager2 viewPager = view.findViewById(R.id.view_pager); // Init view pager adapter - ViewerViewPagerAdapter viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity()); + this.viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity()); viewPager.setAdapter(viewerViewPagerAdapter); // Init tab layout