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
8e5c6d70
Commit
8e5c6d70
authored
12 years ago
by
Jean Chalard
Committed by
Android Git Automerger
12 years ago
Browse files
Options
Downloads
Plain Diff
am
fd15686a
: Merge "Fix an NPE"
* commit '
fd15686a
': Fix an NPE
parents
10800d4b
fd15686a
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/LatinIME.java
+1
-0
1 addition, 0 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
1 addition
and
0 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
1
−
0
View file @
8e5c6d70
...
@@ -2413,6 +2413,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
...
@@ -2413,6 +2413,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
if
(!
mConnection
.
isCursorTouchingWord
(
mSettings
.
getCurrent
()))
return
;
if
(!
mConnection
.
isCursorTouchingWord
(
mSettings
.
getCurrent
()))
return
;
final
Range
range
=
mConnection
.
getWordRangeAtCursor
(
mSettings
.
getWordSeparators
(),
final
Range
range
=
mConnection
.
getWordRangeAtCursor
(
mSettings
.
getWordSeparators
(),
0
/* additionalPrecedingWordsCount */
);
0
/* additionalPrecedingWordsCount */
);
if
(
null
==
range
)
return
;
// Happens if we don't have an input connection at all
final
ArrayList
<
SuggestedWordInfo
>
suggestions
=
CollectionUtils
.
newArrayList
();
final
ArrayList
<
SuggestedWordInfo
>
suggestions
=
CollectionUtils
.
newArrayList
();
final
String
typedWord
=
range
.
mWord
.
toString
();
final
String
typedWord
=
range
.
mWord
.
toString
();
if
(
range
.
mWord
instanceof
SpannableString
)
{
if
(
range
.
mWord
instanceof
SpannableString
)
{
...
...
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