diff options
author | 2012-06-28 16:30:17 +0900 | |
---|---|---|
committer | 2012-06-29 15:12:50 +0900 | |
commit | 9701b360d9a44a06a20554e8998007a614b1622d (patch) | |
tree | 24617f382497e6eae395b577fe824edc234efca7 /java/src | |
parent | 6b911c27a3b572caf11f195bc76924c25f94617d (diff) | |
download | latinime-9701b360d9a44a06a20554e8998007a614b1622d.tar.gz latinime-9701b360d9a44a06a20554e8998007a614b1622d.tar.xz latinime-9701b360d9a44a06a20554e8998007a614b1622d.zip |
Rename a terribly-named method for clarity (A11)
Change-Id: Id180000404dc6929d80f98c0e9cd2026230ad2d1
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/AutoCorrection.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/AutoCorrection.java b/java/src/com/android/inputmethod/latin/AutoCorrection.java index 739b236bb..5c7bc13a3 100644 --- a/java/src/com/android/inputmethod/latin/AutoCorrection.java +++ b/java/src/com/android/inputmethod/latin/AutoCorrection.java @@ -38,7 +38,7 @@ public class AutoCorrection { final CharSequence whitelistedWord) { if (hasAutoCorrectionForWhitelistedWord(whitelistedWord)) { return whitelistedWord; - } else if (hasAutoCorrectionForConsideredWord( + } else if (shouldAutoCorrectToSelf( dictionaries, wordComposer, suggestion, consideredWord)) { return consideredWord; } else if (hasAutoCorrectionForBinaryDictionary(wordComposer, suggestion, @@ -91,6 +91,7 @@ public class AutoCorrection { return maxFreq; } + // Returns true if this is a whitelist entry, or it isn't in any dictionary. public static boolean allowsToBeAutoCorrected( final ConcurrentHashMap<String, Dictionary> dictionaries, final CharSequence word, final boolean ignoreCase) { @@ -108,7 +109,7 @@ public class AutoCorrection { return whiteListedWord != null; } - private static boolean hasAutoCorrectionForConsideredWord( + private static boolean shouldAutoCorrectToSelf( final ConcurrentHashMap<String, Dictionary> dictionaries, final WordComposer wordComposer, final SuggestedWordInfo suggestion, final CharSequence consideredWord) { |