From e460bcbe6ef1c91346c5f4bb05baa57b2c1fd81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 29 Jan 2024 10:57:29 +0900 Subject: [PATCH] =?UTF-8?q?RevID=E3=81=AE=E5=8F=96=E3=82=8A=E6=89=B1?= =?UTF-8?q?=E3=81=84=E3=82=92=E8=BF=BD=E5=8A=A0=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/viewer/ViewerContainerFragment.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java index ef60e938..0bf77039 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java @@ -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; }