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
main
Amith Yamasani 2010-03-10 21:18:49 -08:00
parent 21daa53245
commit 8102ae7941
1 changed files with 2 additions and 1 deletions

View File

@ -694,7 +694,8 @@ public class LatinIME extends InputMethodService
public void setCandidatesViewShown(boolean shown) { public void setCandidatesViewShown(boolean shown) {
// TODO: Remove this if we support candidates with hard keyboard // TODO: Remove this if we support candidates with hard keyboard
if (onEvaluateInputViewShown()) { if (onEvaluateInputViewShown()) {
super.setCandidatesViewShown(shown); // Show the candidates view only if input view is showing
super.setCandidatesViewShown(shown && mInputView != null && mInputView.isShown());
} }
} }