From 8542869a6345896d4819838e0e2c0a77a0ab74ee Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 00:45:10 +0900 Subject: [PATCH] =?UTF-8?q?=E9=81=B8=E6=8A=9E=E8=82=A2=E3=81=AE=E3=83=86?= =?UTF-8?q?=E3=82=AD=E3=82=B9=E3=83=88=E3=81=8C=E6=8C=87=E5=AE=9A=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88?= =?UTF-8?q?=E3=81=AE=E6=97=A2=E5=AE=9A=E5=80=A4=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/component/common/LacertaApplyTagDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java index aabc81d5..f8f562f1 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaApplyTagDialog.java @@ -119,11 +119,11 @@ public class LacertaApplyTagDialog extends DialogFragment { builder.setTitle(title) .setMessage(message) .setView(view) - .setPositiveButton(positiveButtonText, (dialog, id) -> { + .setPositiveButton(positiveButtonText == null ? "OK" : positiveButtonText, (dialog, id) -> { // Send the positive button event back to the host activity listener.onDialogPositiveClick(LacertaApplyTagDialog.this); }) - .setNegativeButton(negativeButtonText, (dialog, id) -> { + .setNegativeButton(negativeButtonText == null ? "Cancel" : negativeButtonText, (dialog, id) -> { // Send the negative button event back to the host activity listener.onDialogNegativeClick(LacertaApplyTagDialog.this); });