diff options
author | 2010-09-27 09:30:28 -0700 | |
---|---|---|
committer | 2010-09-27 09:30:28 -0700 | |
commit | 0517bffc065096ce3b0eceada94696735fcbafd7 (patch) | |
tree | c9fde2d142c1a75364b076eff3f1bffd887f2a32 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | dc7097b4e74fa2290cc70106e49e84e0c812feda (diff) | |
parent | 7f2a6a056b67efa2a1fb623ca4cf73f7fb6c7d8c (diff) | |
download | latinime-0517bffc065096ce3b0eceada94696735fcbafd7.tar.gz latinime-0517bffc065096ce3b0eceada94696735fcbafd7.tar.xz latinime-0517bffc065096ce3b0eceada94696735fcbafd7.zip |
am 7f2a6a05: am 0b4ae1f5: Capitalize the displayed text in the suggestion bar when all of the user typed chars are upper case
Merge commit '7f2a6a056b67efa2a1fb623ca4cf73f7fb6c7d8c'
* commit '7f2a6a056b67efa2a1fb623ca4cf73f7fb6c7d8c':
Capitalize the displayed text in the suggestion bar when all of the user typed chars are upper case
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 43175e314..92340dcce 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1388,7 +1388,7 @@ public class LatinIME extends InputMethodService if (mKeyboardSwitcher.getInputView().isShifted() && mKeyboardSwitcher.isAlphabetMode() && mComposing.length() == 0) { - mWord.setCapitalized(true); + mWord.setFirstCharCapitalized(true); } mComposing.append((char) primaryCode); mWord.add(primaryCode, keyCodes); @@ -2019,7 +2019,7 @@ public class LatinIME extends InputMethodService touching.word.charAt(i) }); } - foundWord.setCapitalized(Character.isUpperCase(touching.word.charAt(0))); + foundWord.setFirstCharCapitalized(Character.isUpperCase(touching.word.charAt(0))); } // Found a match, show suggestions if (foundWord != null || alternatives != null) { @@ -2176,7 +2176,7 @@ public class LatinIME extends InputMethodService } public boolean preferCapitalization() { - return mWord.isCapitalized(); + return mWord.isFirstCharCapitalized(); } private void toggleLanguage(boolean reset, boolean next) { |