diff options
author | 2010-03-10 21:18:49 -0800 | |
---|---|---|
committer | 2010-03-10 21:18:49 -0800 | |
commit | 8102ae79417448de25142ad328b74b0ee15bea1a (patch) | |
tree | fc652e4b718d3e18e1fac21c403582434ee670af /java/src | |
parent | 21daa53245318296adaecb88ab548628540b151c (diff) | |
download | latinime-8102ae79417448de25142ad328b74b0ee15bea1a.tar.gz latinime-8102ae79417448de25142ad328b74b0ee15bea1a.tar.xz latinime-8102ae79417448de25142ad328b74b0ee15bea1a.zip |
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
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 43972d98b..8754690da 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -694,7 +694,8 @@ public class LatinIME extends InputMethodService 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()); } } |