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
23980cdb
Commit
23980cdb
authored
12 years ago
by
satok
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Do not pass misspelled flags to TextView"
parents
fec6837a
65ebe190
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
+1
-6
1 addition, 6 deletions
...c/com/android/inputmethod/compat/SuggestionSpanUtils.java
with
1 addition
and
6 deletions
java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
+
1
−
6
View file @
23980cdb
...
@@ -131,16 +131,11 @@ public class SuggestionSpanUtils {
...
@@ -131,16 +131,11 @@ public class SuggestionSpanUtils {
sameAsTyped
=
true
;
sameAsTyped
=
true
;
}
}
}
}
// TODO: Share the implementation for checking typed word validity between the IME
// and the spell checker.
final
int
flag
=
(
sameAsTyped
&&
!
suggestedWords
.
mTypedWordValid
)
?
(
OBJ_FLAG_EASY_CORRECT
|
OBJ_FLAG_MISSPELLED
)
:
0
;
// TODO: We should avoid adding suggestion span candidates that came from the bigram
// TODO: We should avoid adding suggestion span candidates that came from the bigram
// prediction.
// prediction.
final
Object
[]
args
=
final
Object
[]
args
=
{
context
,
null
,
suggestionsList
.
toArray
(
new
String
[
suggestionsList
.
size
()]),
flag
,
{
context
,
null
,
suggestionsList
.
toArray
(
new
String
[
suggestionsList
.
size
()]),
0
,
(
Class
<?>)
SuggestionSpanPickedNotificationReceiver
.
class
};
(
Class
<?>)
SuggestionSpanPickedNotificationReceiver
.
class
};
final
Object
ss
=
CompatUtils
.
newInstance
(
CONSTRUCTOR_SuggestionSpan
,
args
);
final
Object
ss
=
CompatUtils
.
newInstance
(
CONSTRUCTOR_SuggestionSpan
,
args
);
if
(
ss
==
null
)
{
if
(
ss
==
null
)
{
...
...
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