|
|
@@ -59,24 +59,15 @@ public class ConfirmDialog extends TextDialog {
|
|
|
.setPositiveButton(positiveButtonLabel, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialog, int id) {
|
|
|
if (null != getCustomListener()) {
|
|
|
- if (positiveButtonLabel == R.string.go_execute) {
|
|
|
- getCustomListener().onDialogCanceled(ConfirmDialog.this);
|
|
|
- }
|
|
|
- else {
|
|
|
- getCustomListener().onDialogResult(ConfirmDialog.this, new Event.Builder(Event.CONFIRM).build());
|
|
|
- }
|
|
|
+ getCustomListener().onDialogResult(ConfirmDialog.this, new Event.Builder(Event.CONFIRM).build());
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
.setNegativeButton(negativeButtonLabel, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialog, int id) {
|
|
|
if (null != getCustomListener()) {
|
|
|
- if (negativeButtonLabel == R.string.back) {
|
|
|
- getCustomListener().onDialogResult(ConfirmDialog.this, new Event.Builder(Event.CONFIRM).build());
|
|
|
- }
|
|
|
- else {
|
|
|
- getCustomListener().onDialogCanceled(ConfirmDialog.this);
|
|
|
- }
|
|
|
+ getCustomListener().onDialogCanceled(ConfirmDialog.this);
|
|
|
}
|
|
|
}
|
|
|
});
|