mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
RevIDの取り扱いを追加 WIP
This commit is contained in:
parent
e4418e6322
commit
e460bcbe6e
|
@ -61,6 +61,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 String revId;
|
||||||
private ViewerViewPagerAdapter viewerViewPagerAdapter;
|
private ViewerViewPagerAdapter viewerViewPagerAdapter;
|
||||||
|
|
||||||
public ViewerContainerFragment() {
|
public ViewerContainerFragment() {
|
||||||
|
@ -74,6 +75,7 @@ public class ViewerContainerFragment extends Fragment {
|
||||||
args.putString("documentId", documentId);
|
args.putString("documentId", documentId);
|
||||||
args.putString("documentName", documentName);
|
args.putString("documentName", documentName);
|
||||||
args.putBoolean("hasCombined", hasCombined);
|
args.putBoolean("hasCombined", hasCombined);
|
||||||
|
args.putString("revId", null);
|
||||||
return fragment;
|
return fragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +86,18 @@ public class ViewerContainerFragment extends Fragment {
|
||||||
args.putString("documentId", documentId);
|
args.putString("documentId", documentId);
|
||||||
args.putString("documentName", documentName);
|
args.putString("documentName", documentName);
|
||||||
args.putBoolean("hasCombined", false);
|
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;
|
return fragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user