mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -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 there is only one choice, pick it by default
|
||||||
if (mAdapter.getCount() == 2) {
|
if (mAdapter.getCount() == 2) {
|
||||||
// preselect if key can certify
|
// preselect if key can certify
|
||||||
if (data.moveToPosition(1) && data.isNull(mIndexHasCertify)) {
|
if (data.moveToPosition(1) && !data.isNull(mIndexHasCertify)) {
|
||||||
setSelection(1);
|
setSelection(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user