preselect key if only a single one is available
This commit is contained in:
parent
19dfac7fc9
commit
a02251274b
|
@ -101,6 +101,10 @@ public class KeySpinner extends AppCompatSpinner {
|
|||
}
|
||||
|
||||
private void maybeSelectPreselection(List<UnifiedKeyInfo> keyInfos) {
|
||||
if (spinnerAdapter.hasNoneItem() && keyInfos.size() == 1) {
|
||||
setSelection(1);
|
||||
return;
|
||||
}
|
||||
if (preSelectedKeyId == null) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue