mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
テストデータのDocument Titleを指定できるように
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
|
import com.google.android.material.textfield.TextInputEditText;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
@@ -55,8 +57,10 @@ public class DebugMenuDocumentTesterManageFragment extends Fragment {
|
|||||||
// Inflate the layout for this fragment
|
// Inflate the layout for this fragment
|
||||||
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_manage, container, false);
|
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 -> {
|
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");
|
DocumentPath path = new DocumentPath("root", "test_path");
|
||||||
DocumentDetail detail = new DocumentDetail(meta, path, "test_author", "test_default_branch");
|
DocumentDetail detail = new DocumentDetail(meta, path, "test_author", "test_default_branch");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user