From 597eb268f4bdc28c3cba8c5d24986f3699453e71 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sun, 7 Sep 2014 17:03:51 +0200 Subject: [PATCH] add error text on bad passphrase --- .../keychain/ui/dialog/PassphraseDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/PassphraseDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/PassphraseDialogFragment.java index d433677a3..2c8fc29d4 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/PassphraseDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/PassphraseDialogFragment.java @@ -289,8 +289,8 @@ public class PassphraseDialogFragment extends DialogFragment implements OnEditor // if the passphrase was wrong, reset and re-enable the dialogue if (!result) { - // TODO add a "bad passphrase" dialogue? mPassphraseEditText.setText(""); + mPassphraseEditText.setError(getString(R.string.wrong_passphrase)); mInput.setVisibility(View.VISIBLE); mProgress.setVisibility(View.GONE); positive.setEnabled(true);