From 8dfde3332b541685a78f69894ca9a54347d06c24 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 18 Dec 2023 02:06:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=81=AEDocument=20Title=E3=82=92=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuDocumentTesterManageFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterManageFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterManageFragment.java index fe4bb945..b46ee40d 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterManageFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterManageFragment.java @@ -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");