diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-03 15:54:07 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-03 15:54:07 +0200 |
commit | 6ca9d8a2689a24c2e57f95903e59d8db62bf4dc4 (patch) | |
tree | aaad1f0d651cea52b1573be99160acda298b7917 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain | |
parent | b9d2ae938ab6f26afb8f5806cb34f363443250e8 (diff) | |
download | open-keychain-6ca9d8a2689a24c2e57f95903e59d8db62bf4dc4.tar.gz open-keychain-6ca9d8a2689a24c2e57f95903e59d8db62bf4dc4.tar.bz2 open-keychain-6ca9d8a2689a24c2e57f95903e59d8db62bf4dc4.zip |
fix no passphrase check
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/SetPassphraseDialogFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/SetPassphraseDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/SetPassphraseDialogFragment.java index 0fe5fdeda..93da48b75 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/SetPassphraseDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/SetPassphraseDialogFragment.java @@ -47,7 +47,7 @@ import org.sufficientlysecure.keychain.util.Log; public class SetPassphraseDialogFragment extends DialogFragment implements OnEditorActionListener { private static final String ARG_MESSENGER = "messenger"; private static final String ARG_TITLE = "title"; - private static final String ARG_OLD_PASSPHRASE = "title"; + private static final String ARG_OLD_PASSPHRASE = "old_passphrase"; public static final int MESSAGE_OKAY = 1; @@ -103,6 +103,8 @@ public class SetPassphraseDialogFragment extends DialogFragment implements OnEdi if (TextUtils.isEmpty(oldPassphrase)) { mNoPassphraseCheckBox.setChecked(true); + mPassphraseEditText.setEnabled(false); + mPassphraseAgainEditText.setEnabled(false); } mNoPassphraseCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { |