aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-26 02:15:38 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-26 02:15:38 -0800
commitdd5e1d157b6bd8d7642dfd1dd855c97adc9f4b67 (patch)
treef3eddf70b9659c4a2aca9a1a10c5e74562c96491 /java/src/com/android/inputmethod/latin/LatinIME.java
parent3c09bb18d93800be14466f90502c344dcfafa738 (diff)
parent2712f23acbb197af3b125da4cc47108e71b7446d (diff)
downloadlatinime-dd5e1d157b6bd8d7642dfd1dd855c97adc9f4b67.tar.gz
latinime-dd5e1d157b6bd8d7642dfd1dd855c97adc9f4b67.tar.xz
latinime-dd5e1d157b6bd8d7642dfd1dd855c97adc9f4b67.zip
Merge "Remove mCommittedWordSavedForSuggestionResuming (A4)"
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, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 5ef35dab5..62b287e3c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2165,7 +2165,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// "ic" must not be null
private void cancelAutoCorrect(final InputConnection ic) {
- mWordComposer.resumeSuggestionOnKeptWord();
+ mWordComposer.resumeSuggestionOnLastComposedWord(mLastComposedWord);
final String originallyTypedWord = mWordComposer.getTypedWord();
final CharSequence autoCorrectedTo = mWordComposer.getAutoCorrectionOrNull();
final int cancelLength = autoCorrectedTo.length();
@@ -2205,7 +2205,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// Note: in the interest of code simplicity, we may want to just call
// restartSuggestionsOnWordBeforeCursorIfAtEndOfWord instead, but retrieving
// the old WordComposer allows to reuse the actual typed coordinates.
- mWordComposer.resumeSuggestionOnKeptWord();
+ mWordComposer.resumeSuggestionOnLastComposedWord(mLastComposedWord);
// We resume suggestion, and then we want to set the composing text to the content
// of the word composer again. But since we just manually picked a word, there is
// no composing text at the moment, so we have to delete the word before we set a