Fix to preselect certification key if only one is available

Closes #981
This commit is contained in:
Vincent Breitmoser 2014-10-29 22:47:34 +01:00
parent 8b53bed6c0
commit a221464f38

View File

@ -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);
}
}