From fad9fcc48af4861c82988295dada137d6b3ead72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 26 Jan 2024 15:26:19 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=82=B0=E3=82=92=E5=AE=9F=E9=9A=9B?= =?UTF-8?q?=E3=81=AB=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/setting/SettingTagManageFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/feature/setting/src/main/java/one/nem/lacerta/setting/SettingTagManageFragment.java b/feature/setting/src/main/java/one/nem/lacerta/setting/SettingTagManageFragment.java index 53660f69..2211a60c 100644 --- a/feature/setting/src/main/java/one/nem/lacerta/setting/SettingTagManageFragment.java +++ b/feature/setting/src/main/java/one/nem/lacerta/setting/SettingTagManageFragment.java @@ -19,6 +19,7 @@ import dagger.hilt.android.AndroidEntryPoint; import one.nem.lacerta.component.common.LacertaCreateTagDialog; import one.nem.lacerta.component.common.LacertaCreateTagDialogListener; import one.nem.lacerta.data.LacertaLibrary; +import one.nem.lacerta.model.document.tag.DocumentTag; /** * A simple {@link Fragment} subclass. @@ -109,6 +110,10 @@ public class SettingTagManageFragment extends Fragment { @Override public void onPositiveClick(String tagName, String tagColor) { Toast.makeText(getContext(), "Positive Clicked", Toast.LENGTH_SHORT).show(); + DocumentTag newTag = new DocumentTag(); + newTag.setName(tagName); + newTag.setColor(tagColor); + lacertaLibrary.createTag(newTag).join(); } @Override