diff --git a/android/KMEA/app/src/main/java/com/keyman/engine/data/CloudRepository.java b/android/KMEA/app/src/main/java/com/keyman/engine/data/CloudRepository.java index 5bd4d8d6849..42cf05afe16 100644 --- a/android/KMEA/app/src/main/java/com/keyman/engine/data/CloudRepository.java +++ b/android/KMEA/app/src/main/java/com/keyman/engine/data/CloudRepository.java @@ -153,8 +153,10 @@ private boolean shouldUseCache(Context context, File cacheFile) { /** * Search the available lexical models list and see there's an associated model for a * given language ID. Available models are from the cloud catalog and locally installed models. - * @param context Context - * @param languageID String of the language ID to search + * If more than one model are installed for a given language, the first one found will be + * returned. + * @param context Context + * @param languageID String of the language ID to search * @return LexicalModel of an associated lexical model. Null if no match found */ public LexicalModel getAssociatedLexicalModel(@NonNull Context context, String languageID) { diff --git a/android/docs/engine/KMManager/getAssociatedLexicalModel.md b/android/docs/engine/KMManager/getAssociatedLexicalModel.md index e92e6f3449a..29a2ae2720f 100644 --- a/android/docs/engine/KMManager/getAssociatedLexicalModel.md +++ b/android/docs/engine/KMManager/getAssociatedLexicalModel.md @@ -3,11 +3,13 @@ title: KMManager.getAssociatedLexicalModel() --- ## Summary + The **getAssociatedLexicalModel()** method searches the installed lexical models list and see if there's an associated model for a given language ## Syntax + ```java -HashMap getAssociatedLexicalModel(String langId) +HashMap getAssociatedLexicalModel(String langId) ``` ### Parameters @@ -16,17 +18,23 @@ HashMap getAssociatedLexicalModel(String langId) : The language ID ### Returns -A dictionary of the associated lexical model information with keys and values defined as + +A dictionary of the associated lexical model information with keys and values defined as `HashMap