From 50f00411caed8d63e7c946ea5bc290a4877c8d94 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 01:18:29 +0900 Subject: [PATCH] =?UTF-8?q?PositiveButton=E3=82=92=E6=8A=BC=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/component/viewer/ViewerContainerFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java index 8f91f666..e4a5dc30 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java @@ -211,7 +211,12 @@ public class ViewerContainerFragment extends Fragment { .setListener(new LacertaApplyTagDialog.LacertaApplyTagDialogListener() { @Override public void onDialogPositiveClick(ArrayList appliedTags) { - // 適用 + lacertaLibrary.applyTagListToDocument(documentId, appliedTags).thenAccept(aVoid -> { + getActivity().runOnUiThread(() -> { + Toast.makeText(getContext(), "タグを適用しました", Toast.LENGTH_SHORT).show(); + lacertaApplyTagDialog.dismiss(); + }); + }); } @Override