コンストラクタ追加

This commit is contained in:
r-ca 2024-01-24 17:04:36 +09:00
parent 5fc8a501ad
commit bd8edc85ce
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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);