From f49e9757404a84620f56e4210159c55193587187 Mon Sep 17 00:00:00 2001
From: "Tadashi G. Takaoka" <takaoka@google.com>
Date: Wed, 18 Jun 2014 16:35:51 -0700
Subject: [PATCH] Clear suggestions strip if a suggestion engine isn't attached

Bug: 15709298
Change-Id: I1b3fff3152960d85060149727d7a3422fea8a0bd
---
 .../com/android/inputmethod/latin/inputlogic/InputLogic.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index de95b97878..d216d65155 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -1187,6 +1187,8 @@ public final class InputLogic {
                 Log.w(TAG, "Called updateSuggestionsOrPredictions but suggestions were not "
                         + "requested!");
             }
+            // Clear the suggestions strip.
+            mSuggestionStripViewAccessor.showSuggestionStrip(SuggestedWords.EMPTY);
             return;
         }
 
-- 
GitLab