mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix a possible OutOfBoundsException
Change-Id: I6eb13c228738119c78496a96acaedbccefd83cd3
This commit is contained in:
parent
3458d61807
commit
c53661f152
@ -156,6 +156,11 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
|
||||
// }
|
||||
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
|
||||
// make the threshold.
|
||||
|
Loading…
x
Reference in New Issue
Block a user