diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/AuthenticationDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/AuthenticationDialog.java index d7b2dc536..160afcf86 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/AuthenticationDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/AuthenticationDialog.java @@ -40,8 +40,7 @@ public abstract class AuthenticationDialog extends AlertDialog.Builder { }); setOnCancelListener(dialog -> onCancelled()); - setOnDismissListener(dialog -> onCancelled()); - setNegativeButton(R.string.cancel_label, null); + setNegativeButton(R.string.cancel_label, (dialog, which) -> onCancelled()); setPositiveButton(R.string.confirm_label, (dialog, which) -> onConfirmed(viewBinding.usernameEditText.getText().toString(), viewBinding.passwordEditText.getText().toString()));