aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-10-09 21:00:18 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 21:00:18 -0700
commit302102ee532ed23af17942c7bd8cc8238ce29559 (patch)
tree81da3a354ffef1f4d29251190253ea19ab896d64 /java/src/com/android/inputmethod/latin/LatinIME.java
parent2b33fc74b681fbdbb2bd0aee753753236d919f4b (diff)
parentdb7513bb25b1c1b84f69c91eb35367e80ac25e40 (diff)
downloadlatinime-302102ee532ed23af17942c7bd8cc8238ce29559.tar.gz
latinime-302102ee532ed23af17942c7bd8cc8238ce29559.tar.xz
latinime-302102ee532ed23af17942c7bd8cc8238ce29559.zip
am db7513bb: am a701501c: Merge "Reduce memory of emoji palette"
* commit 'db7513bb25b1c1b84f69c91eb35367e80ac25e40': Reduce memory of emoji palette
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index bdf7a9d29..ccdbd0d4d 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1050,11 +1050,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
private void onFinishInputViewInternal(final boolean finishingInput) {
super.onFinishInputView(finishingInput);
mKeyboardSwitcher.onFinishInputView();
- final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
- if (mainKeyboardView != null) {
- mainKeyboardView.cancelAllOngoingEvents();
- mainKeyboardView.deallocateMemory();
- }
+ mKeyboardSwitcher.deallocateMemory();
// Remove pending messages related to update suggestions
mHandler.cancelUpdateSuggestionStrip();
// Should do the following in onFinishInputInternal but until JB MR2 it's not called :(