From ca819178a1211219297a2bdaef7c024375b8c7ea Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 24 Jan 2014 20:45:58 +0900 Subject: [IL88] Simple refactoring With this, the value passed to suggestedWords is never null. Bug: 8636060 Change-Id: I433dd7e7290125e217e05cc20bee7a4b58fe083f --- 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 4520283c0..ea3940e75 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1434,7 +1434,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final String typedWord) { if (suggestedWords.isEmpty()) { // No auto-correction is available, clear the cached values. - AccessibilityUtils.getInstance().setAutoCorrection(null, null); + AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord); clearSuggestionStrip(); return; } -- cgit v1.2.3-83-g751a