diff options
author | 2010-09-28 00:32:35 +0900 | |
---|---|---|
committer | 2010-09-28 01:15:11 +0900 | |
commit | 0b4ae1f578e768eec4ada90aeb81d11acb10eb2e (patch) | |
tree | d0062970c6907bab4d88c90a3b719fe07b551467 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 3a2b90357ce056765d5c9d6dec0335c308e21717 (diff) | |
download | latinime-0b4ae1f578e768eec4ada90aeb81d11acb10eb2e.tar.gz latinime-0b4ae1f578e768eec4ada90aeb81d11acb10eb2e.tar.xz latinime-0b4ae1f578e768eec4ada90aeb81d11acb10eb2e.zip |
Capitalize the displayed text in the suggestion bar when all of the user typed chars are upper case
bug:3014227
Change-Id: Ic453e2fde57ce51be00f3a506e1c9328103ca99a
Diffstat (limited to '')
-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 4729585f6..01f3ba66c 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1389,7 +1389,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); @@ -2020,7 +2020,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) { @@ -2177,7 +2177,7 @@ public class LatinIME extends InputMethodService } public boolean preferCapitalization() { - return mWord.isCapitalized(); + return mWord.isFirstCharCapitalized(); } private void toggleLanguage(boolean reset, boolean next) { |