From 2f9df5a225ef4ae8a606404a11d60435e823ea9c 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:18:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E3=82=A4?= =?UTF-8?q?=E3=83=99=E3=83=B3=E3=83=88=E3=82=B9=E3=82=BF=E3=83=96=E5=AE=9F?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/setting/SettingTagManageFragment.java | 12 ++++++++++++ 1 file changed, 12 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 ddf918b8..53660f69 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 @@ -17,6 +17,7 @@ import javax.inject.Inject; 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; /** @@ -104,6 +105,17 @@ public class SettingTagManageFragment extends Fragment { if (item.getItemId() == R.id.setting_tag_manage_menu_add) { Toast.makeText(getContext(), "Add Clicked", Toast.LENGTH_SHORT).show(); LacertaCreateTagDialog dialog = new LacertaCreateTagDialog(); + dialog.setListener(new LacertaCreateTagDialogListener() { + @Override + public void onPositiveClick(String tagName, String tagColor) { + Toast.makeText(getContext(), "Positive Clicked", Toast.LENGTH_SHORT).show(); + } + + @Override + public void onNegativeClick() { + Toast.makeText(getContext(), "Negative Clicked", Toast.LENGTH_SHORT).show(); + } + }); dialog.show(getParentFragmentManager(), "create_tag_dialog"); return true; } else {