Fix a bug that would prevent spell checking
java.lang.ArrayIndexOutOfBoundsException: [I offset=0 length=528 src.length=512 com.android.inputmethod.keyboard.ProximityInfo .setProximityInfoNative(Native Method) com.android.inputmethod.keyboard.ProximityInfo .createSpellCheckerProximityInfo(ProximityInfo.java:85) com.android.inputmethod.latin.spellcheck.AndroidSpellCheckerService .createDictAndProximity(AndroidSpellCheckerService.java:411) The array was too small with respect with the passed size. Change-Id: I7777d7aecd17375d3fbf82854a66eb7a5a289ce6
This commit is contained in:
parent
0aeb4c206c
commit
5d6b8e1818
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ public class SpellCheckerProximityInfo {
|
|||
NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL,
|
||||
NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL,
|
||||
NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL,
|
||||
NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL, NUL,
|
||||
};
|
||||
static {
|
||||
buildProximityIndices(PROXIMITY, INDICES);
|
||||
|
|
Loading…
Reference in a new issue