From 059f4c2f39b67dd5e08dca8e736aef4f1f0c69d1 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 20 Dec 2013 20:29:34 +0900 Subject: [PATCH] [IL30] Minor refactoring Change-Id: I8a8aa9f703c6fca5e25ec573b41f325680ac92dc --- java/src/com/android/inputmethod/latin/LatinIME.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index a2ecc107f..3a0ea68a6 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -581,6 +581,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen suggest.close(); mInputLogic.mSuggest = null; } + if (mInputUpdater != null) { + mInputUpdater.quitLooper(); + } mSettings.onDestroy(); unregisterReceiver(mReceiver); if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { @@ -590,9 +593,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen PersonalizationDictionarySessionRegister.onDestroy(this); LatinImeLogger.commit(); LatinImeLogger.onDestroy(); - if (mInputUpdater != null) { - mInputUpdater.quitLooper(); - } super.onDestroy(); }