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
f89a7513
Commit
f89a7513
authored
12 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Small readability improvement (A10)
Change-Id: Iba326921711e1c4eab38264e66b6b44a64fec398
parent
06bc7fed
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/Suggest.java
+3
-1
3 additions, 1 deletion
java/src/com/android/inputmethod/latin/Suggest.java
with
3 additions
and
1 deletion
java/src/com/android/inputmethod/latin/Suggest.java
+
3
−
1
View file @
f89a7513
...
@@ -166,6 +166,8 @@ public class Suggest {
...
@@ -166,6 +166,8 @@ public class Suggest {
public
SuggestedWords
getSuggestedWords
(
public
SuggestedWords
getSuggestedWords
(
final
WordComposer
wordComposer
,
CharSequence
prevWordForBigram
,
final
WordComposer
wordComposer
,
CharSequence
prevWordForBigram
,
final
ProximityInfo
proximityInfo
,
final
boolean
isCorrectionEnabled
,
final
ProximityInfo
proximityInfo
,
final
boolean
isCorrectionEnabled
,
// TODO: remove isPrediction parameter. It effectively means the same thing
// as wordComposer.size() <= 1
final
boolean
isPrediction
)
{
final
boolean
isPrediction
)
{
LatinImeLogger
.
onStartSuggestion
(
prevWordForBigram
);
LatinImeLogger
.
onStartSuggestion
(
prevWordForBigram
);
final
boolean
isFirstCharCapitalized
=
final
boolean
isFirstCharCapitalized
=
...
@@ -261,7 +263,7 @@ public class Suggest {
...
@@ -261,7 +263,7 @@ public class Suggest {
LatinImeLogger
.
onAddSuggestedWord
(
wordInfo
.
mWord
.
toString
(),
wordInfo
.
mSourceDict
);
LatinImeLogger
.
onAddSuggestedWord
(
wordInfo
.
mWord
.
toString
(),
wordInfo
.
mSourceDict
);
}
}
if
(!
isPrediction
)
{
if
(!
TextUtils
.
isEmpty
(
typedWord
)
)
{
suggestionsContainer
.
add
(
0
,
new
SuggestedWordInfo
(
typedWord
,
suggestionsContainer
.
add
(
0
,
new
SuggestedWordInfo
(
typedWord
,
SuggestedWordInfo
.
MAX_SCORE
,
SuggestedWordInfo
.
KIND_TYPED
,
SuggestedWordInfo
.
MAX_SCORE
,
SuggestedWordInfo
.
KIND_TYPED
,
Dictionary
.
TYPE_USER_TYPED
));
Dictionary
.
TYPE_USER_TYPED
));
...
...
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