diff options
author | 2009-12-01 11:44:22 -0800 | |
---|---|---|
committer | 2009-12-02 16:43:21 -0800 | |
commit | bb6f9146f1de4e0bdfaafca1d1896e02d038751d (patch) | |
tree | 8ffdd20608952b0f5639557408cd6b4c761da484 /src/com/android/inputmethod/latin/LatinIME.java | |
parent | e84127357929bd82b4c8710dee697fe7c3d5d88d (diff) | |
download | latinime-bb6f9146f1de4e0bdfaafca1d1896e02d038751d.tar.gz latinime-bb6f9146f1de4e0bdfaafca1d1896e02d038751d.tar.xz latinime-bb6f9146f1de4e0bdfaafca1d1896e02d038751d.zip |
DO NOT MERGE: Fix for 2295810: Auto-correction of English results in Englishman
Comparisons were always happening with lowercase version of the typed
word, which wouldn't match the uppercase word in the dictionary, so it
became an unrecognized word when typed in full. Highlight was then going
to the next word in the list.
Fix compares the lowercase and uppercase versions of the word for
validity.
Merge from eclair-mr2
Diffstat (limited to 'src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | src/com/android/inputmethod/latin/LatinIME.java | 3 |
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; } |