aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-09-12 21:20:07 +0900
committerJean Chalard <jchalard@google.com>2013-09-12 21:20:07 +0900
commitce96d0d12f1e062f1e88930878f119725e6d04a4 (patch)
treef2bb9b16d3f8cb9c8250f40d7c7244205b0eb9d8 /java/src
parentbe470f06e48e40a0def32e0f34e3ca48113937b5 (diff)
downloadlatinime-ce96d0d12f1e062f1e88930878f119725e6d04a4.tar.gz
latinime-ce96d0d12f1e062f1e88930878f119725e6d04a4.tar.xz
latinime-ce96d0d12f1e062f1e88930878f119725e6d04a4.zip
Avoid recorrection in ex-password fields.
Bug: 10115839 Change-Id: I1f1025c9f28adfb6f5a63d5ba86e359f30c0963e
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index a325c40c4..cdd6c92e4 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2671,6 +2671,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// recorrection. This is a temporary, stopgap measure that will be removed later.
// TODO: remove this.
if (mAppWorkAroundsUtils.isBrokenByRecorrection()) return;
+ // A simple way to test for support from the TextView.
+ if (!isSuggestionsStripVisible()) return;
// Recorrection is not supported in languages without spaces because we don't know
// how to segment them yet.
if (!mSettings.getCurrent().mCurrentLanguageHasSpaces) return;