diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-29 22:47:34 +0100 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-29 22:47:34 +0100 |
commit | a221464f38d70e54b5df31ca7a980de2fc2910b2 (patch) | |
tree | d138961a12680c578d922d63d3ed778447f8a489 /OpenKeychain/src/main/java | |
parent | 8b53bed6c003f608d2822eeba8a0a8ccfa71046d (diff) | |
download | open-keychain-a221464f38d70e54b5df31ca7a980de2fc2910b2.tar.gz open-keychain-a221464f38d70e54b5df31ca7a980de2fc2910b2.tar.bz2 open-keychain-a221464f38d70e54b5df31ca7a980de2fc2910b2.zip |
Fix to preselect certification key if only one is available
Closes #981
Diffstat (limited to 'OpenKeychain/src/main/java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CertifyKeySpinner.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CertifyKeySpinner.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CertifyKeySpinner.java index 6f37f1c72..14f42eb04 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CertifyKeySpinner.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/CertifyKeySpinner.java @@ -89,7 +89,7 @@ public class CertifyKeySpinner extends KeySpinner { // If there is only one choice, pick it by default if (mAdapter.getCount() == 2) { // preselect if key can certify - if (data.moveToPosition(1) && data.isNull(mIndexHasCertify)) { + if (data.moveToPosition(1) && !data.isNull(mIndexHasCertify)) { setSelection(1); } } |