mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
Revert "Revert "Adapterをインタンス変数に持たせるように""
This reverts commit 1a2cf77f62
.
This commit is contained in:
parent
1a2cf77f62
commit
c44fd3ae8b
|
@ -57,6 +57,7 @@ public class ViewerContainerFragment extends Fragment {
|
||||||
private String documentId;
|
private String documentId;
|
||||||
private String documentName;
|
private String documentName;
|
||||||
private boolean hasCombined = false;
|
private boolean hasCombined = false;
|
||||||
|
private ViewerViewPagerAdapter viewerViewPagerAdapter;
|
||||||
|
|
||||||
public ViewerContainerFragment() {
|
public ViewerContainerFragment() {
|
||||||
// Required empty public constructor
|
// Required empty public constructor
|
||||||
|
@ -107,7 +108,7 @@ public class ViewerContainerFragment extends Fragment {
|
||||||
ViewPager2 viewPager = view.findViewById(R.id.view_pager);
|
ViewPager2 viewPager = view.findViewById(R.id.view_pager);
|
||||||
|
|
||||||
// Init view pager adapter
|
// Init view pager adapter
|
||||||
ViewerViewPagerAdapter viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity());
|
this.viewerViewPagerAdapter = new ViewerViewPagerAdapter(requireActivity());
|
||||||
viewPager.setAdapter(viewerViewPagerAdapter);
|
viewPager.setAdapter(viewerViewPagerAdapter);
|
||||||
|
|
||||||
// Init tab layout
|
// Init tab layout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user