mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
add error text on bad passphrase
This commit is contained in:
parent
3ba2e0b0c1
commit
597eb268f4
@ -289,8 +289,8 @@ public class PassphraseDialogFragment extends DialogFragment implements OnEditor
|
|||||||
|
|
||||||
// if the passphrase was wrong, reset and re-enable the dialogue
|
// if the passphrase was wrong, reset and re-enable the dialogue
|
||||||
if (!result) {
|
if (!result) {
|
||||||
// TODO add a "bad passphrase" dialogue?
|
|
||||||
mPassphraseEditText.setText("");
|
mPassphraseEditText.setText("");
|
||||||
|
mPassphraseEditText.setError(getString(R.string.wrong_passphrase));
|
||||||
mInput.setVisibility(View.VISIBLE);
|
mInput.setVisibility(View.VISIBLE);
|
||||||
mProgress.setVisibility(View.GONE);
|
mProgress.setVisibility(View.GONE);
|
||||||
positive.setEnabled(true);
|
positive.setEnabled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user