aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-10-17 19:55:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-17 19:55:15 -0700
commit4571fff019cc1749cea9a7c5fd219db1784a60f2 (patch)
treeff0de6e75238fe6cd43048c855dea768642a5105 /java/src/com/android/inputmethod/latin/LatinIME.java
parenta2de8f0f835399dfd6c6732235839481a6bfb620 (diff)
parent3740a26c21ddbcfffd2ddccee3918810e026a6d4 (diff)
downloadlatinime-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.java4
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);