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
c3e211bd
Commit
c3e211bd
authored
10 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Remove a deprecated constructor to SuggestedWords
Change-Id: If4d358b3a11fb25fc214c728269519d8c25f9adc
parent
6e61cd3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/latin/Suggest.java
+5
-1
5 additions, 1 deletion
java/src/com/android/inputmethod/latin/Suggest.java
java/src/com/android/inputmethod/latin/SuggestedWords.java
+2
-12
2 additions, 12 deletions
java/src/com/android/inputmethod/latin/SuggestedWords.java
with
7 additions
and
13 deletions
java/src/com/android/inputmethod/latin/Suggest.java
+
5
−
1
View file @
c3e211bd
...
@@ -230,7 +230,7 @@ public final class Suggest {
...
@@ -230,7 +230,7 @@ public final class Suggest {
inputStyle
=
inputStyleIfNotPrediction
;
inputStyle
=
inputStyleIfNotPrediction
;
}
}
callback
.
onGetSuggestedWords
(
new
SuggestedWords
(
suggestionsList
,
callback
.
onGetSuggestedWords
(
new
SuggestedWords
(
suggestionsList
,
suggestionResults
.
mRawSuggestions
,
suggestionResults
.
mRawSuggestions
,
typedWord
,
// TODO: this first argument is lying. If this is a whitelisted word which is an
// TODO: this first argument is lying. If this is a whitelisted word which is an
// actual word, it says typedWordValid = false, which looks wrong. We should either
// actual word, it says typedWordValid = false, which looks wrong. We should either
// rename the attribute or change the value.
// rename the attribute or change the value.
...
@@ -286,8 +286,12 @@ public final class Suggest {
...
@@ -286,8 +286,12 @@ public final class Suggest {
// (typedWordValid=true), not as an "auto correct word" (willAutoCorrect=false).
// (typedWordValid=true), not as an "auto correct word" (willAutoCorrect=false).
// Note that because this method is never used to get predictions, there is no need to
// Note that because this method is never used to get predictions, there is no need to
// modify inputType such in getSuggestedWordsForNonBatchInput.
// modify inputType such in getSuggestedWordsForNonBatchInput.
final
String
pseudoTypedWord
=
suggestionsContainer
.
isEmpty
()
?
null
:
suggestionsContainer
.
get
(
0
).
mWord
;
callback
.
onGetSuggestedWords
(
new
SuggestedWords
(
suggestionsContainer
,
callback
.
onGetSuggestedWords
(
new
SuggestedWords
(
suggestionsContainer
,
suggestionResults
.
mRawSuggestions
,
suggestionResults
.
mRawSuggestions
,
pseudoTypedWord
,
true
/* typedWordValid */
,
true
/* typedWordValid */
,
false
/* willAutoCorrect */
,
false
/* willAutoCorrect */
,
false
/* isObsoleteSuggestions */
,
false
/* isObsoleteSuggestions */
,
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/SuggestedWords.java
+
2
−
12
View file @
c3e211bd
...
@@ -73,21 +73,11 @@ public class SuggestedWords {
...
@@ -73,21 +73,11 @@ public class SuggestedWords {
final
boolean
willAutoCorrect
,
final
boolean
willAutoCorrect
,
final
boolean
isObsoleteSuggestions
,
final
boolean
isObsoleteSuggestions
,
final
int
inputStyle
)
{
final
int
inputStyle
)
{
this
(
suggestedWordInfoList
,
rawSuggestions
,
typedWordValid
,
willAutoCorrect
,
isObsoleteSuggestions
,
inputStyle
,
NOT_A_SEQUENCE_NUMBER
);
}
public
SuggestedWords
(
final
ArrayList
<
SuggestedWordInfo
>
suggestedWordInfoList
,
final
ArrayList
<
SuggestedWordInfo
>
rawSuggestions
,
final
boolean
typedWordValid
,
final
boolean
willAutoCorrect
,
final
boolean
isObsoleteSuggestions
,
final
int
inputStyle
,
final
int
sequenceNumber
)
{
this
(
suggestedWordInfoList
,
rawSuggestions
,
this
(
suggestedWordInfoList
,
rawSuggestions
,
(
suggestedWordInfoList
.
isEmpty
()
||
isPrediction
(
inputStyle
))
?
null
(
suggestedWordInfoList
.
isEmpty
()
||
isPrediction
(
inputStyle
))
?
null
:
suggestedWordInfoList
.
get
(
INDEX_OF_TYPED_WORD
).
mWord
,
:
suggestedWordInfoList
.
get
(
INDEX_OF_TYPED_WORD
).
mWord
,
typedWordValid
,
willAutoCorrect
,
isObsoleteSuggestions
,
inputStyle
,
sequenceNumber
);
typedWordValid
,
willAutoCorrect
,
isObsoleteSuggestions
,
inputStyle
,
NOT_A_SEQUENCE_NUMBER
);
}
}
public
SuggestedWords
(
final
ArrayList
<
SuggestedWordInfo
>
suggestedWordInfoList
,
public
SuggestedWords
(
final
ArrayList
<
SuggestedWordInfo
>
suggestedWordInfoList
,
...
...
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