aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-27 23:13:28 +0900
committerJean Chalard <jchalard@google.com>2012-07-28 00:15:54 +0900
commite7c471a52f38c48cd38e412d88901bddb6f903a9 (patch)
tree10ed39c2ce768f615b2dfbd53f5d301a334090f4 /java/src/com/android/inputmethod/latin/Suggest.java
parente3f26dd21e16a7d8c23a95a5084947e54ba598e1 (diff)
downloadlatinime-e7c471a52f38c48cd38e412d88901bddb6f903a9.tar.gz
latinime-e7c471a52f38c48cd38e412d88901bddb6f903a9.tar.xz
latinime-e7c471a52f38c48cd38e412d88901bddb6f903a9.zip
Don't auto-correct when there are digits.
Bug: 6667462 Change-Id: I796655f57c71c9f50ae6e38dd08b71df3998dbcf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-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 3e3cf76f1..5e2a04124 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -233,7 +233,7 @@ public class Suggest {
// the current settings. It may also be useful to know, when the setting is off, whether
// the word *would* have been auto-corrected.
if (!isCorrectionEnabled || !allowsToBeAutoCorrected || !wordComposer.isComposingWord()
- || suggestionsSet.isEmpty()
+ || suggestionsSet.isEmpty() || wordComposer.hasDigits()
|| wordComposer.isMostlyCaps() || wordComposer.isResumed()
|| !hasMainDictionary()) {
// If we don't have a main dictionary, we never want to auto-correct. The reason for