diff options
author | Ashley Hughes <spirit.returned@gmail.com> | 2014-02-02 00:51:56 +0000 |
---|---|---|
committer | Ashley Hughes <spirit.returned@gmail.com> | 2014-02-02 00:51:56 +0000 |
commit | 0b8036fbefd5b47363cd9fe6f0391c3e217417d3 (patch) | |
tree | 87bebf021ec6cebf60afc0cbba8ad08b62f31320 | |
parent | 5e4b98f748fc269fd358543f9659d27ac026ad42 (diff) | |
download | open-keychain-0b8036fbefd5b47363cd9fe6f0391c3e217417d3.tar.gz open-keychain-0b8036fbefd5b47363cd9fe6f0391c3e217417d3.tar.bz2 open-keychain-0b8036fbefd5b47363cd9fe6f0391c3e217417d3.zip |
allow passphrases to be removed
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java index e7b1b4c23..ac14427f8 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java @@ -94,6 +94,7 @@ public class EditKeyActivity extends SherlockFragmentActivity { private String mCurrentPassPhrase = null; private String mNewPassPhrase = null; + private String mSavedNewPassPhrase = null; private BootstrapButton mChangePassPhrase; @@ -462,10 +463,11 @@ public class EditKeyActivity extends SherlockFragmentActivity { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { // remove passphrase - mNewPassPhrase = null; - + mSavedNewPassPhrase = mNewPassPhrase; + mNewPassPhrase = ""; mChangePassPhrase.setVisibility(View.GONE); } else { + mNewPassPhrase = mSavedNewPassPhrase; mChangePassPhrase.setVisibility(View.VISIBLE); } } |