diff options
author | 2011-06-28 00:28:29 +0900 | |
---|---|---|
committer | 2011-06-28 01:00:59 +0900 | |
commit | 660d42fb36b00914e5fc3aeabdec844e3af7ff6b (patch) | |
tree | 2dc5c5c2604120234c9bb9531cb8f8ebc44a5311 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 55303bc63440c6a9547e94b4f3486a00696da9b0 (diff) | |
download | latinime-660d42fb36b00914e5fc3aeabdec844e3af7ff6b.tar.gz latinime-660d42fb36b00914e5fc3aeabdec844e3af7ff6b.tar.xz latinime-660d42fb36b00914e5fc3aeabdec844e3af7ff6b.zip |
Remove mInForeground flag from KeyboardView
Instead of that, added cancelAllMessages() and call it from
onFinishInputView().
Change-Id: I58f6f0931ed8d73441d80d9616ba3afbbbe38e05
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 45f35ec03..874d77f19 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -591,7 +591,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar inputView.setProximityCorrectionEnabled(true); // If we just entered a text field, maybe it has some old text that requires correction mRecorrection.checkRecorrectionOnStart(); - inputView.setForeground(true); voiceIme.onStartInputView(inputView.getWindowToken()); @@ -679,7 +678,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void onFinishInputView(boolean finishingInput) { super.onFinishInputView(finishingInput); KeyboardView inputView = mKeyboardSwitcher.getKeyboardView(); - if (inputView != null) inputView.setForeground(false); + if (inputView != null) inputView.cancelAllMessage(); // Remove pending messages related to update suggestions mHandler.cancelUpdateSuggestions(); mHandler.cancelUpdateOldSuggestions(); |