diff options
author | 2013-12-25 21:43:23 +0900 | |
---|---|---|
committer | 2013-12-27 22:40:19 +0900 | |
commit | 1e50c681af56dd77d97a1e6d463f1e3023c1a69b (patch) | |
tree | 79e180a0267557abb2313bddc90e20b2d27faa05 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 8ce921dd6ba5c63a2dc44b7578a3587aa7dc75c7 (diff) | |
download | latinime-1e50c681af56dd77d97a1e6d463f1e3023c1a69b.tar.gz latinime-1e50c681af56dd77d97a1e6d463f1e3023c1a69b.tar.xz latinime-1e50c681af56dd77d97a1e6d463f1e3023c1a69b.zip |
[IL52] Remove a useless method.
This old method doesn't even re-read the old suggestions. It used to
recompute them without the coordinates.
Re-using the recorrection code, which is much more advanced, is
the right thing to do here.
Also, refining the test. It's no use trying to resume suggestion
if we don't have a suggestion strip, since we aren't going to
auto-correct anything anyway.
Not the motivation for this change, but this also fixes
Bug: 11620256
Change-Id: Id49efa32e293c49837c61fdc752c86bbac1d2c88
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index a62c22cbf..5a5674f8f 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -201,7 +201,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen break; case MSG_RESUME_SUGGESTIONS: latinIme.mInputLogic.restartSuggestionsOnWordTouchedByCursor( - latinIme.mSettings.getCurrent(), latinIme.mKeyboardSwitcher); + latinIme.mSettings.getCurrent(), 0 /* offset */, + false /* includeResumedWordInSuggestions */, latinIme.mKeyboardSwitcher); break; case MSG_REOPEN_DICTIONARIES: latinIme.initSuggest(); |