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