mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-08 11:47:36 +00:00
negativeButtonTextが指定されていない場合の既定値を追加
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user