negativeButtonTextが指定されていない場合の既定値を追加

This commit is contained in:
r-ca 2024-01-27 16:17:52 +09:00
parent 78d4345313
commit 7ef75bb375
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -100,7 +100,7 @@ public class LacertaSelectRevDialog extends DialogFragment {
builder.setTitle(title == null ? "Select Rev" : title); builder.setTitle(title == null ? "Select Rev" : title);
builder.setMessage(message == null ? "Select Rev" : message); builder.setMessage(message == null ? "Select Rev" : message);
builder.setNegativeButton(negativeButtonText, (dialog, which) -> { builder.setNegativeButton(negativeButtonText == null ? "Cancel" : negativeButtonText, (dialog, which) -> {
if (listener != null) { if (listener != null) {
listener.onDialogCanceled(); listener.onDialogCanceled();
dismiss(); dismiss();