mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
Revisionが指定されている場合はBodyに渡すように
This commit is contained in:
parent
a569182fd1
commit
d9a9cd0743
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user