diff options
author | 2013-05-20 21:08:41 -0700 | |
---|---|---|
committer | 2013-05-20 21:08:41 -0700 | |
commit | 167ba3459b0ce02b9add12ade9388bd2b1e6eb62 (patch) | |
tree | 3adb039fecd1b01f81016f342ffaac2c2ecae12b /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 5906b05bb50c0a67bd4f03fcfae41db3daefe0bc (diff) | |
parent | 89fe1f50881180730e451cbe6ec4d1f8dc67acf1 (diff) | |
download | latinime-167ba3459b0ce02b9add12ade9388bd2b1e6eb62.tar.gz latinime-167ba3459b0ce02b9add12ade9388bd2b1e6eb62.tar.xz latinime-167ba3459b0ce02b9add12ade9388bd2b1e6eb62.zip |
am 89fe1f50: Add a method to work around apps broken by recorrection
* commit '89fe1f50881180730e451cbe6ec4d1f8dc67acf1':
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.java | 4 |
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 93495956d..c464a7067 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. |