bug(android): `getAssociatedLexicalModel()` always returns first model for language
- Dominant language
- Pascal
- Stars
- 534
- Forks
- 143
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 113
Description
If there are multiple models installed for a language (e.g. for Khmer), `getAssociatedLexicalModel()` will always return the first model. There is no indication if there are more than one model installed for the language.
A similar problem exists for `registerAssociatedLexicalModel()`.
Documentation: [`getAssociatedLexicalModel.md`](https://github.com/keymanapp/keyman/blob/master/android/docs/engine/KMManager/getAssociatedLexicalModel.md)
Contributor guide
Research direction
Start with android/docs/engine/KMManager/getAssociatedLexicalModel.md and trace the implementations of getAssociatedLexicalModel() and registerAssociatedLexicalModel(). Reproduce the behavior with multiple installed models for one language, then determine and verify the intended handling for both methods without silently selecting the first model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100