mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25:32 +00:00
fix(android/engine): Check listview for setting keyboard selection
This commit is contained in:
parent
dbc4def1c2
commit
5baf4eac89
1 changed files with 4 additions and 2 deletions
|
|
@ -321,8 +321,10 @@ public final class KeyboardPickerActivity extends BaseActivity {
|
|||
}
|
||||
|
||||
private static void setSelection(int position) {
|
||||
listView.setItemChecked(position, true);
|
||||
listView.setSelection(position);
|
||||
if (listView != null) {
|
||||
listView.setItemChecked(position, true);
|
||||
listView.setSelection(position);
|
||||
}
|
||||
selectedIndex = position;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue