aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-11 17:21:37 +0900
committerJean Chalard <jchalard@google.com>2012-07-12 15:09:48 +0900
commit02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0 (patch)
tree395046c3f60bc98d6eea4913743d80ebaeb80f91 /java/src
parentae13061245e6a82863416456a461207d871a89ff (diff)
downloadlatinime-02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0.tar.gz
latinime-02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0.tar.xz
latinime-02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0.zip
Cleanup (A113)
If not composing a word, then consideredWord is always the empty string. Hence, it's never whitelisted, but it's also always "NotAWord", so isWhitelistedOrNotAWord returns always true, so allowsToBeAutoCorrected is always true. Which means that isPrediction implies allowsToBeAutoCorrected == true. Thus, !isPrediction && !allowsToBeAutoCorrected is strictly equivalent to !allowsToBeAutocorrected. Change-Id: I4ad7a7c3447851c539646d97cf55ff065e6ee115
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 1d1d07e17..7ebbbabe8 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -277,7 +277,7 @@ public class Suggest {
// TODO: this first argument is lying. If this is a whitelisted word which is an
// actual word, it says typedWordValid = false, which looks wrong. We should either
// rename the attribute or change the value.
- !isPrediction && !allowsToBeAutoCorrected /* typedWordValid */,
+ !allowsToBeAutoCorrected /* typedWordValid */,
!isPrediction && hasAutoCorrection, /* willAutoCorrect */
false /* isPunctuationSuggestions */,
false /* isObsoleteSuggestions */,