mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
コンストラクタ追加
This commit is contained in:
parent
5fc8a501ad
commit
bd8edc85ce
|
@ -55,6 +55,16 @@ public class ViewerPrimaryFragment extends Fragment {
|
||||||
return fragment;
|
return fragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ViewerPrimaryFragment newInstance(String documentId, String documentName, String revisionId) {
|
||||||
|
ViewerPrimaryFragment fragment = new ViewerPrimaryFragment();
|
||||||
|
Bundle args = new Bundle();
|
||||||
|
args.putString("documentId", documentId);
|
||||||
|
args.putString("documentName", documentName);
|
||||||
|
args.putString("revisionId", revisionId);
|
||||||
|
fragment.setArguments(args);
|
||||||
|
return fragment;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user