From a2cb2f36a6b51f73602bd7e917c418657da0c973 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Mon, 17 Nov 2014 18:26:15 +0900 Subject: Make the typed word a SuggestedWordInfo That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b --- java/src/com/android/inputmethod/latin/LatinIME.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java') diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index db67e3412..6411010e6 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1638,7 +1638,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Cache the auto-correction in accessibility code so we can speak it if the user // touches a key that will insert it. AccessibilityUtils.getInstance().setAutoCorrection(suggestedWords, - suggestedWords.mTypedWord); + suggestedWords.mTypedWordInfo.mWord); } // Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener} -- cgit v1.2.3-83-g751a