aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-12-13 23:08:12 +0900
committerJean Chalard <jchalard@google.com>2011-12-13 23:09:22 +0900
commitf7d6517d6b1a1dd88e2142e1a15703bb839be01b (patch)
treec030a17a4c104fdf82bcc8697de416471100c966 /java/src/com/android/inputmethod/latin/UserBigramDictionary.java
parentedf4995a3bad3b95a2b4184d47ea4ff890d0de73 (diff)
downloadlatinime-f7d6517d6b1a1dd88e2142e1a15703bb839be01b.tar.gz
latinime-f7d6517d6b1a1dd88e2142e1a15703bb839be01b.tar.xz
latinime-f7d6517d6b1a1dd88e2142e1a15703bb839be01b.zip
Various mini-cleanups
- Stop the word composer from escaping - take a page from the law of Demeter and only report what is actually needed. - Fix typos in comments. - Add a comment for a fishy processing. - Remove a useless local variable. Change-Id: I5fa78901cbb5483fc9683bfb7094f47244b85df6
Diffstat (limited to 'java/src/com/android/inputmethod/latin/UserBigramDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/UserBigramDictionary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserBigramDictionary.java b/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
index 3a1af9311..f80534cb5 100644
--- a/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
@@ -159,7 +159,7 @@ public class UserBigramDictionary extends ExpandableDictionary {
*/
public int addBigrams(String word1, String word2) {
// remove caps if second word is autocapitalized
- if (mIme != null && mIme.getCurrentWord().isAutoCapitalized()) {
+ if (mIme != null && mIme.isAutoCapitalized()) {
word2 = Character.toLowerCase(word2.charAt(0)) + word2.substring(1);
}
// Do not insert a word as a bigram of itself