mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
選択肢のテキストが指定されていない場合の既定値を定義
This commit is contained in:
parent
d66546a567
commit
8542869a63
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user