mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Fix to preselect certification key if only one is available
Closes #981
This commit is contained in:
parent
8b53bed6c0
commit
a221464f38
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user