aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-12-03 05:41:29 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-03 05:41:29 -0800
commit929dc479b08fe5d1bf859054a8857c80acc6fd08 (patch)
tree8ffdd20608952b0f5639557408cd6b4c761da484 /src/com/android/inputmethod/latin/LatinIME.java
parent9af82ee226e05a38498b7390befbc81ed3e900ab (diff)
parentbb6f9146f1de4e0bdfaafca1d1896e02d038751d (diff)
downloadlatinime-929dc479b08fe5d1bf859054a8857c80acc6fd08.tar.gz
latinime-929dc479b08fe5d1bf859054a8857c80acc6fd08.tar.xz
latinime-929dc479b08fe5d1bf859054a8857c80acc6fd08.zip
am bb6f9146: DO NOT MERGE: Fix for 2295810: Auto-correction of English results in Englishman
Merge commit 'bb6f9146f1de4e0bdfaafca1d1896e02d038751d' into eclair-plus-aosp * commit 'bb6f9146f1de4e0bdfaafca1d1896e02d038751d': DO NOT MERGE: Fix for 2295810: Auto-correction of English results in Englishman
Diffstat (limited to 'src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index 8b76dbd39..a6cf312d2 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -809,7 +809,8 @@ public class LatinIME extends InputMethodService
//|| mCorrectionMode == mSuggest.CORRECTION_FULL;
CharSequence typedWord = mWord.getTypedWord();
// If we're in basic correct
- boolean typedWordValid = mSuggest.isValidWord(typedWord);
+ boolean typedWordValid = mSuggest.isValidWord(typedWord) ||
+ (preferCapitalization() && mSuggest.isValidWord(typedWord.toString().toLowerCase()));
if (mCorrectionMode == Suggest.CORRECTION_FULL) {
correctionAvailable |= typedWordValid;
}