mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 01:27:42 +00:00
fix(android/engine): Disable suggestions if file doesn't exist
This commit is contained in:
parent
3d7029aa36
commit
755d3da0df
1 changed files with 2 additions and 0 deletions
|
|
@ -1053,8 +1053,10 @@ public final class KMManager {
|
|||
File modelFile = new File(getLexicalModelsDir(), pkgID + File.separator + modelID + ".model.js");
|
||||
String path = "file://" + modelFile.getAbsolutePath();
|
||||
|
||||
// Disable sugestions if lexical-model file doesn't exist
|
||||
if (!modelFile.exists()) {
|
||||
modelFileExists = false;
|
||||
setBannerOptions(false);
|
||||
KMLog.LogError(TAG, modelFile.getAbsolutePath() + " does not exist");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue