Fix to preselect certification key if only one is available
Closes #981
This commit is contained in:
1 parent
8b53bed6c0
commit
a221464f38
1 file changed
+1
-1
+1
-1
@@ -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