Fix to preselect certification key if only one is available
Closes #981
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user