RevIDの取り扱いを追加 WIP

This commit is contained in:
ろむねこ 2024-01-29 10:57:29 +09:00
parent e4418e6322
commit e460bcbe6e
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -61,6 +61,7 @@ public class ViewerContainerFragment extends Fragment {
private String documentId;
private String documentName;
private boolean hasCombined = false;
private String revId;
private ViewerViewPagerAdapter viewerViewPagerAdapter;
public ViewerContainerFragment() {
@ -74,6 +75,7 @@ public class ViewerContainerFragment extends Fragment {
args.putString("documentId", documentId);
args.putString("documentName", documentName);
args.putBoolean("hasCombined", hasCombined);
args.putString("revId", null);
return fragment;
}
@ -84,6 +86,18 @@ public class ViewerContainerFragment extends Fragment {
args.putString("documentId", documentId);
args.putString("documentName", documentName);
args.putBoolean("hasCombined", false);
args.putString("revId", null);
return fragment;
}
public static ViewerContainerFragment newInstance(String documentId, String documentName, String revId) {
ViewerContainerFragment fragment = new ViewerContainerFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
args.putString("documentId", documentId);
args.putString("documentName", documentName);
args.putBoolean("hasCombined", false);
args.putString("revId", revId);
return fragment;
}