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
739683dc
Commit
739683dc
authored
12 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Rename a method for readability (A19)
Change-Id: I0b8c06d1fd0bfb3caf363c048acc7048abed1752
parent
31b346aa
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/AutoCorrection.java
+1
-1
1 addition, 1 deletion
java/src/com/android/inputmethod/latin/AutoCorrection.java
java/src/com/android/inputmethod/latin/Suggest.java
+2
-2
2 additions, 2 deletions
java/src/com/android/inputmethod/latin/Suggest.java
with
3 additions
and
3 deletions
java/src/com/android/inputmethod/latin/AutoCorrection.java
+
1
−
1
View file @
739683dc
...
...
@@ -75,7 +75,7 @@ public class AutoCorrection {
}
// Returns true if this is a whitelist entry, or it isn't in any dictionary.
public
static
boolean
allowsToBeAutoCorrecte
d
(
public
static
boolean
isWhitelistedOrNotAWor
d
(
final
ConcurrentHashMap
<
String
,
Dictionary
>
dictionaries
,
final
CharSequence
word
,
final
boolean
ignoreCase
)
{
final
WhitelistDictionary
whitelistDictionary
=
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/Suggest.java
+
2
−
2
View file @
739683dc
...
...
@@ -233,7 +233,7 @@ public class Suggest {
final
CharSequence
autoCorrection
;
if
(
null
!=
whitelistedWord
)
{
autoCorrection
=
whitelistedWord
;
}
else
if
(!
AutoCorrection
.
allowsToBeAutoCorrecte
d
(
}
else
if
(!
AutoCorrection
.
isWhitelistedOrNotAWor
d
(
mDictionaries
,
consideredWord
,
false
))
{
autoCorrection
=
consideredWord
;
}
else
if
(
AutoCorrection
.
hasAutoCorrectionForBinaryDictionary
(
bestSuggestion
,
...
...
@@ -290,7 +290,7 @@ public class Suggest {
// The whitelist should be case-insensitive, so it's not possible to be consistent with
// a boolean flag. Right now this is handled with a slight hack in
// WhitelistDictionary#shouldForciblyAutoCorrectFrom.
final
boolean
allowsToBeAutoCorrected
=
AutoCorrection
.
allowsToBeAutoCorrecte
d
(
final
boolean
allowsToBeAutoCorrected
=
AutoCorrection
.
isWhitelistedOrNotAWor
d
(
getUnigramDictionaries
(),
consideredWord
,
wordComposer
.
isFirstCharCapitalized
())
// If we don't have a main dictionary, we never want to auto-correct. The reason for this
// is, the user may have a contact whose name happens to match a valid word in their
...
...
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