mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
テストデータのDocument Titleを指定できるように
This commit is contained in:
parent
ced5129263
commit
8dfde3332b
|
@ -8,6 +8,8 @@ import android.view.LayoutInflater;
|
|||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.google.android.material.textfield.TextInputEditText;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
@ -55,8 +57,10 @@ public class DebugMenuDocumentTesterManageFragment extends Fragment {
|
|||
// Inflate the layout for this fragment
|
||||
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_manage, container, false);
|
||||
|
||||
TextInputEditText editTextDocumentTitle = view.findViewById(R.id.edit_text_document_title);
|
||||
view.findViewById(R.id.button_insert_test_data).setOnClickListener( v -> {
|
||||
DocumentMeta meta = new DocumentMeta("test_title");
|
||||
|
||||
DocumentMeta meta = new DocumentMeta(editTextDocumentTitle != null ? editTextDocumentTitle.getText().toString() : "empty title"); // TODO-rca: Nullable
|
||||
DocumentPath path = new DocumentPath("root", "test_path");
|
||||
DocumentDetail detail = new DocumentDetail(meta, path, "test_author", "test_default_branch");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user