add error text on bad passphrase

This commit is contained in:
Vincent Breitmoser 2014-09-07 17:03:51 +02:00
parent 3ba2e0b0c1
commit 597eb268f4

View File

@ -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);