diff options
author | 2010-10-17 19:10:46 +0900 | |
---|---|---|
committer | 2010-10-17 23:50:24 +0900 | |
commit | 3740a26c21ddbcfffd2ddccee3918810e026a6d4 (patch) | |
tree | 37b21bec6496c9e497863a42d74e58cbf655b4e6 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | cd7b7d3e8febcfbcab4628d1fc5b87e809ce56cc (diff) | |
download | latinime-3740a26c21ddbcfffd2ddccee3918810e026a6d4.tar.gz latinime-3740a26c21ddbcfffd2ddccee3918810e026a6d4.tar.xz latinime-3740a26c21ddbcfffd2ddccee3918810e026a6d4.zip |
Showing popup preview only when IME is in foreground
Bug: 3100922
Change-Id: Icd59fc3978dc1fccb523a368b0a7d4549fc2db78
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 687870622..edda9e866 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -680,6 +680,7 @@ public class LatinIME extends InputMethodService // If we just entered a text field, maybe it has some old text that requires correction checkReCorrectionOnStart(); checkTutorial(attribute.privateImeOptions); + inputView.setForeground(true); if (TRACE) Debug.startMethodTracing("/data/trace/latinime"); } @@ -731,6 +732,9 @@ public class LatinIME extends InputMethodService @Override public void onFinishInputView(boolean finishingInput) { super.onFinishInputView(finishingInput); + LatinKeyboardBaseView inputView = mKeyboardSwitcher.getInputView(); + if (inputView != null) + inputView.setForeground(false); // Remove penging messages related to update suggestions mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS); mHandler.removeMessages(MSG_UPDATE_OLD_SUGGESTIONS); |