am c53661f1
: Fix a possible OutOfBoundsException
* commit 'c53661f152f2d676f8cec656cbdd93adfa7fc908': Fix a possible OutOfBoundsException
This commit is contained in:
commit
cc23c303b5
1 changed files with 5 additions and 0 deletions
|
@ -156,6 +156,11 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
|
||||||
// }
|
// }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (insertIndex >= mMaxLength) {
|
||||||
|
// We found a suggestion, but its score is too weak to be kept considering
|
||||||
|
// the suggestion limit.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Compute the normalized score and skip this word if it's normalized score does not
|
// Compute the normalized score and skip this word if it's normalized score does not
|
||||||
// make the threshold.
|
// make the threshold.
|
||||||
|
|
Loading…
Reference in a new issue