diff options
author | 2010-10-17 19:55:15 -0700 | |
---|---|---|
committer | 2010-10-17 19:55:15 -0700 | |
commit | 4571fff019cc1749cea9a7c5fd219db1784a60f2 (patch) | |
tree | ff0de6e75238fe6cd43048c855dea768642a5105 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | a2de8f0f835399dfd6c6732235839481a6bfb620 (diff) | |
parent | 3740a26c21ddbcfffd2ddccee3918810e026a6d4 (diff) | |
download | latinime-4571fff019cc1749cea9a7c5fd219db1784a60f2.tar.gz latinime-4571fff019cc1749cea9a7c5fd219db1784a60f2.tar.xz latinime-4571fff019cc1749cea9a7c5fd219db1784a60f2.zip |
Merge "Showing popup preview only when IME is in foreground"
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); |