[IL30] Minor refactoring

Change-Id: I8a8aa9f703c6fca5e25ec573b41f325680ac92dc
This commit is contained in:
Jean Chalard 2013-12-20 20:29:34 +09:00
parent 0547b33130
commit 059f4c2f39

View File

@ -581,6 +581,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
suggest.close(); suggest.close();
mInputLogic.mSuggest = null; mInputLogic.mSuggest = null;
} }
if (mInputUpdater != null) {
mInputUpdater.quitLooper();
}
mSettings.onDestroy(); mSettings.onDestroy();
unregisterReceiver(mReceiver); unregisterReceiver(mReceiver);
if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {
@ -590,9 +593,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
PersonalizationDictionarySessionRegister.onDestroy(this); PersonalizationDictionarySessionRegister.onDestroy(this);
LatinImeLogger.commit(); LatinImeLogger.commit();
LatinImeLogger.onDestroy(); LatinImeLogger.onDestroy();
if (mInputUpdater != null) {
mInputUpdater.quitLooper();
}
super.onDestroy(); super.onDestroy();
} }