mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-07 19:47:36 +00:00
Revisionが指定されている場合はBodyに渡すように
This commit is contained in:
1 file changed
+4
+4
@@ -38,8 +38,12 @@ public class ViewerViewPagerAdapter extends FragmentStateAdapter {
|
||||
@NonNull
|
||||
@Override
|
||||
public Fragment createFragment(int position) {
|
||||
if (fragmentRevisionList != null && fragmentRevisionList.size() > position) {
|
||||
return ViewerBodyFragment.newInstance(fragmentTargetIdList.get(position), fragmentTitleList.get(position), fragmentRevisionList.get(position));
|
||||
} else {
|
||||
return ViewerBodyFragment.newInstance(fragmentTargetIdList.get(position), fragmentTitleList.get(position));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
|
||||
Reference in new issue
Block a user