From 0e01df9baf3d9e2fc7b9a51b683ce6df6ff547dd Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Tue, 8 Oct 2013 20:11:35 +0900 Subject: Reduce memory of emoji palette Bug: 10902556 Change-Id: I3c8da35a601de2bfb248292c7b59235fc1120988 --- java/src/com/android/inputmethod/latin/LatinIME.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java') diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 4d7e43e17..8d1bb07cf 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1049,11 +1049,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 :( -- cgit v1.2.3-83-g751a