From 97809d340c7fe4e044bf28ffadef41064a649f24 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 17 Aug 2021 19:17:33 +0200 Subject: [PATCH] Fix entering new password protected feeds --- .../java/de/danoeh/antennapod/dialog/AuthenticationDialog.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()));