aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-24 22:33:44 +0900
committerJean Chalard <jchalard@google.com>2014-01-29 12:22:21 +0900
commit1d2e4f9dccfba925dda75a1ded569c3b62f639ed (patch)
treeae698695a63b6ba6df43d235df4feab67b8d94d0 /java/src/com/android/inputmethod/latin/LatinIME.java
parent005d2454c97400bef3da7961267fe6b943da5833 (diff)
downloadlatinime-1d2e4f9dccfba925dda75a1ded569c3b62f639ed.tar.gz
latinime-1d2e4f9dccfba925dda75a1ded569c3b62f639ed.tar.xz
latinime-1d2e4f9dccfba925dda75a1ded569c3b62f639ed.zip
[IL103] Save the typed word separately in SuggestedWords.
This helps managing the cases where the typed word is not in the suggestions. This happens during recorrection. Bug: 8636060 Change-Id: I6784feb793cae96272a7f1d123a0e3bbb8f03143
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
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 e8ea5e39d..46f2b3c2b 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1538,6 +1538,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
}
+ // [IL] TODO: remove the second argument
public void unsetIsAutoCorrectionIndicatorOnAndCallShowSuggestionStrip(
final SuggestedWords suggestedWords, final String typedWord) {
// Note that it's very important here that suggestedWords.mWillAutoCorrect is false.
@@ -1547,7 +1548,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// the text to adapt it.
// TODO: remove mIsAutoCorrectionIndicatorOn (see comment on definition)
mInputLogic.mIsAutoCorrectionIndicatorOn = false;
- mHandler.showSuggestionStripWithTypedWord(suggestedWords, typedWord);
+ mHandler.showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.mTypedWord);
}
// TODO: Make this private