Skip to content
Snippets Groups Projects
Commit 8102ae79 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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
parent 21daa532
No related branches found
No related tags found
No related merge requests found
...@@ -694,7 +694,8 @@ public class LatinIME extends InputMethodService ...@@ -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());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment