aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-05-20 21:12:11 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-20 21:12:11 -0700
commit56dba59ada0c8a40ccc216b49d34785e6ba0c261 (patch)
tree9d90e841b90262530a6155dcf4f9b1ce79818d8b /java/src/com/android/inputmethod/latin/LatinIME.java
parentd3cf671524e475d206ab2d7902d6d1cee79f1cd3 (diff)
parent05ea7c5d0233d2ba703de1123e99f81938badf66 (diff)
downloadlatinime-56dba59ada0c8a40ccc216b49d34785e6ba0c261.tar.gz
latinime-56dba59ada0c8a40ccc216b49d34785e6ba0c261.tar.xz
latinime-56dba59ada0c8a40ccc216b49d34785e6ba0c261.zip
am 05ea7c5d: am 167ba345: am 89fe1f50: Add a method to work around apps broken by recorrection
* commit '05ea7c5d0233d2ba703de1123e99f81938badf66': Add a method to work around apps broken by recorrection
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 7a834c027..f85c16be3 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2450,6 +2450,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
* do nothing.
*/
private void restartSuggestionsOnWordTouchedByCursor() {
+ // HACK: We may want to special-case some apps that exhibit bad behavior in case of
+ // recorrection. This is a temporary, stopgap measure that will be removed later.
+ // TODO: remove this.
+ if (mAppWorkAroundsUtils.isBrokenByRecorrection()) return;
// If the cursor is not touching a word, or if there is a selection, return right away.
if (mLastSelectionStart != mLastSelectionEnd) return;
// If we don't know the cursor location, return.