2175312 : IME suggestions stay on screen after switching orientation in search dialog
Only show the candidate strip if the input view is showing. Otherwise ignore any
completions from the AutoCompleteTextView
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 43972d9..8754690 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -694,7 +694,8 @@
public void setCandidatesViewShown(boolean shown) {
// TODO: Remove this if we support candidates with hard keyboard
if (onEvaluateInputViewShown()) {
- super.setCandidatesViewShown(shown);
+ // Show the candidates view only if input view is showing
+ super.setCandidatesViewShown(shown && mInputView != null && mInputView.isShown());
}
}