Revert "Adapterをインタンス変数に持たせるように"

This reverts commit 19f6eb1683.
This commit is contained in:
r-ca 2024-01-29 02:39:30 +09:00
parent 19f6eb1683
commit 1a2cf77f62
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -57,7 +57,6 @@ public class ViewerContainerFragment extends Fragment {
private String documentId;
private String documentName;
private boolean hasCombined = false;
private ViewerViewPagerAdapter viewerViewPagerAdapter;
public ViewerContainerFragment() {
// Required empty public constructor
@ -108,7 +107,7 @@ public class ViewerContainerFragment extends Fragment {
ViewPager2 viewPager = view.findViewById(R.id.view_pager);
// Init view pager adapter
this.viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity());
ViewerViewPagerAdapter viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity());
viewPager.setAdapter(viewerViewPagerAdapter);
// Init tab layout