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
cbbfa157
Commit
cbbfa157
authored
13 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Make AutoCorrection a step closer to being static (A3)"
parents
58722d83
9254dbcd
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/latin/AutoCorrection.java
+1
-7
1 addition, 7 deletions
java/src/com/android/inputmethod/latin/AutoCorrection.java
with
1 addition
and
7 deletions
java/src/com/android/inputmethod/latin/AutoCorrection.java
+
1
−
7
View file @
cbbfa157
...
@@ -26,21 +26,15 @@ public class AutoCorrection {
...
@@ -26,21 +26,15 @@ public class AutoCorrection {
private
static
final
boolean
DBG
=
LatinImeLogger
.
sDBG
;
private
static
final
boolean
DBG
=
LatinImeLogger
.
sDBG
;
private
static
final
String
TAG
=
AutoCorrection
.
class
.
getSimpleName
();
private
static
final
String
TAG
=
AutoCorrection
.
class
.
getSimpleName
();
private
CharSequence
mAutoCorrectionWord
;
private
CharSequence
mAutoCorrectionWord
;
private
double
mNormalizedScore
;
public
void
init
()
{
public
void
init
()
{
mAutoCorrectionWord
=
null
;
mAutoCorrectionWord
=
null
;
mNormalizedScore
=
Integer
.
MIN_VALUE
;
}
}
public
boolean
hasAutoCorrection
()
{
public
boolean
hasAutoCorrection
()
{
return
null
!=
mAutoCorrectionWord
;
return
null
!=
mAutoCorrectionWord
;
}
}
public
double
getNormalizedScore
()
{
return
mNormalizedScore
;
}
public
CharSequence
updateAutoCorrectionStatus
(
Map
<
String
,
Dictionary
>
dictionaries
,
public
CharSequence
updateAutoCorrectionStatus
(
Map
<
String
,
Dictionary
>
dictionaries
,
WordComposer
wordComposer
,
ArrayList
<
CharSequence
>
suggestions
,
int
[]
sortedScores
,
WordComposer
wordComposer
,
ArrayList
<
CharSequence
>
suggestions
,
int
[]
sortedScores
,
CharSequence
typedWord
,
double
autoCorrectionThreshold
,
int
correctionMode
,
CharSequence
typedWord
,
double
autoCorrectionThreshold
,
int
correctionMode
,
...
@@ -108,7 +102,7 @@ public class AutoCorrection {
...
@@ -108,7 +102,7 @@ public class AutoCorrection {
||
correctionMode
==
Suggest
.
CORRECTION_FULL_BIGRAM
);
||
correctionMode
==
Suggest
.
CORRECTION_FULL_BIGRAM
);
}
}
private
boolean
hasAutoCorrectionForBinaryDictionary
(
WordComposer
wordComposer
,
private
static
boolean
hasAutoCorrectionForBinaryDictionary
(
WordComposer
wordComposer
,
ArrayList
<
CharSequence
>
suggestions
,
int
correctionMode
,
int
[]
sortedScores
,
ArrayList
<
CharSequence
>
suggestions
,
int
correctionMode
,
int
[]
sortedScores
,
CharSequence
typedWord
,
double
autoCorrectionThreshold
)
{
CharSequence
typedWord
,
double
autoCorrectionThreshold
)
{
if
(
wordComposer
.
size
()
>
1
&&
(
correctionMode
==
Suggest
.
CORRECTION_FULL
if
(
wordComposer
.
size
()
>
1
&&
(
correctionMode
==
Suggest
.
CORRECTION_FULL
...
...
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