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
4ca05e24
Commit
4ca05e24
authored
12 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Refactoring (A43)
Change-Id: Ib0b6f36999518096819ada2f19365767cb5f9931
parent
7ad088a4
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/Suggest.java
+3
-3
3 additions, 3 deletions
java/src/com/android/inputmethod/latin/Suggest.java
with
3 additions
and
3 deletions
java/src/com/android/inputmethod/latin/Suggest.java
+
3
−
3
View file @
4ca05e24
...
@@ -229,8 +229,8 @@ public class Suggest {
...
@@ -229,8 +229,8 @@ public class Suggest {
mWhiteListDictionary
.
getWhitelistedWord
(
consideredWord
);
mWhiteListDictionary
.
getWhitelistedWord
(
consideredWord
);
final
boolean
hasAutoCorrection
;
final
boolean
hasAutoCorrection
;
if
(!
isCorrectionEnabled
||
wordComposer
.
isMostlyCaps
()
||
wordComposer
.
is
Resumed
()
if
(!
isCorrectionEnabled
||
!
allowsToBeAutoCorrected
||
wordComposer
.
is
MostlyCaps
()
||
!
hasMainDictionary
())
{
||
wordComposer
.
isResumed
()
||
!
hasMainDictionary
())
{
// If we don't have a main dictionary, we never want to auto-correct. The reason for
// 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
// this is, the user may have a contact whose name happens to match a valid word in
// their language, and it will unexpectedly auto-correct. For example, if the user
// their language, and it will unexpectedly auto-correct. For example, if the user
...
@@ -293,7 +293,7 @@ public class Suggest {
...
@@ -293,7 +293,7 @@ public class Suggest {
// 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.
!
isPrediction
&&
!
allowsToBeAutoCorrected
/* typedWordValid */
,
!
isPrediction
&&
!
allowsToBeAutoCorrected
/* typedWordValid */
,
!
isPrediction
&&
hasAutoCorrection
&&
allowsToBeAutoCorrected
,
/* willAutoCorrect */
!
isPrediction
&&
hasAutoCorrection
,
/* willAutoCorrect */
false
/* isPunctuationSuggestions */
,
false
/* isPunctuationSuggestions */
,
false
/* isObsoleteSuggestions */
,
false
/* isObsoleteSuggestions */
,
isPrediction
);
isPrediction
);
...
...
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