mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 18:05:32 +00:00
Tack on another fix for a separate crash
This commit is contained in:
parent
d973c20445
commit
19c7dbe390
1 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,8 @@ public final class KeyboardPickerActivity extends AppCompatActivity {
|
|||
|
||||
private static void switchKeyboard(int position) {
|
||||
setSelection(position);
|
||||
HashMap<String, String> kbInfo = keyboardsList.get(position);
|
||||
int listPosition = (position >= keyboardsList.size()) ? keyboardsList.size()-1 : position;
|
||||
HashMap<String, String> kbInfo = keyboardsList.get(listPosition);
|
||||
String pkgId = kbInfo.get(KMManager.KMKey_PackageID);
|
||||
if (pkgId == null || pkgId.isEmpty()) {
|
||||
pkgId = KMManager.KMDefault_UndefinedPackageID;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue