aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2013-10-08 04:27:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-08 04:27:13 -0700
commitdb7513bb25b1c1b84f69c91eb35367e80ac25e40 (patch)
tree36289158309426c475525851434e858e373fc97f /java/src/com/android/inputmethod/latin/LatinIME.java
parent17bec5cb1cb963e412201f3c85f00a16f0cbd9f2 (diff)
parenta701501cb67127f6a144f9cdbd62b8a97f37856f (diff)
downloadlatinime-db7513bb25b1c1b84f69c91eb35367e80ac25e40.tar.gz
latinime-db7513bb25b1c1b84f69c91eb35367e80ac25e40.tar.xz
latinime-db7513bb25b1c1b84f69c91eb35367e80ac25e40.zip
am a701501c: Merge "Reduce memory of emoji palette"
* commit 'a701501cb67127f6a144f9cdbd62b8a97f37856f': 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 :(