Clear passphrase field on invalid entry.

This commit is contained in:
Moxie Marlinspike 2013-02-21 14:47:18 -08:00
parent 5bf5b404a1
commit bac6b78b11

View File

@ -65,6 +65,7 @@ public class PassphrasePromptActivity extends PassphraseActivity {
MemoryCleaner.clean(passphrase); MemoryCleaner.clean(passphrase);
setMasterSecret(masterSecret); setMasterSecret(masterSecret);
} catch (InvalidPassphraseException ipe) { } catch (InvalidPassphraseException ipe) {
passphraseText.setText("");
Toast.makeText(getApplicationContext(), Toast.makeText(getApplicationContext(),
R.string.PassphrasePromptActivity_invalid_passphrase_exclamation, R.string.PassphrasePromptActivity_invalid_passphrase_exclamation,
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();