Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
255c044b
Commit
255c044b
authored
14 years ago
by
Ken Wakasa
Browse files
Options
Downloads
Patches
Plain Diff
Fix StringIndexOutOfBoundsException
bug: 3325065 Change-Id: Ic3d2dca5b2aa1681d472c7f96b31737e15f4952d
parent
7a42a460
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/ExpandableDictionary.java
+2
-1
2 additions, 1 deletion
...c/com/android/inputmethod/latin/ExpandableDictionary.java
with
2 additions
and
1 deletion
java/src/com/android/inputmethod/latin/ExpandableDictionary.java
+
2
−
1
View file @
255c044b
...
...
@@ -146,7 +146,7 @@ public class ExpandableDictionary extends Dictionary {
public
Context
getContext
()
{
return
mContext
;
}
public
int
getMaxWordLength
()
{
return
MAX_WORD_LENGTH
;
}
...
...
@@ -158,6 +158,7 @@ public class ExpandableDictionary extends Dictionary {
private
void
addWordRec
(
NodeArray
children
,
final
String
word
,
final
int
depth
,
final
int
frequency
,
Node
parentNode
)
{
final
int
wordLength
=
word
.
length
();
if
(
wordLength
<=
depth
)
return
;
final
char
c
=
word
.
charAt
(
depth
);
// Does children have the current character?
final
int
childrenLength
=
children
.
mLength
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment