Merge "fixing ime crash in emulator"

main
Kristian Monsen 2010-02-05 10:42:14 -08:00 committed by Android (Google) Code Review
commit 4a29e9fdea
1 changed files with 7 additions and 3 deletions

View File

@ -565,14 +565,18 @@ public class LatinIME extends InputMethodService
public void onFinishInput() { public void onFinishInput() {
super.onFinishInput(); super.onFinishInput();
if (mAfterVoiceInput) mVoiceInput.logInputEnded(); if (VOICE_INSTALLED && mAfterVoiceInput) {
mVoiceInput.logInputEnded();
}
if (VOICE_INSTALLED) {
mVoiceInput.flushLogs(); mVoiceInput.flushLogs();
}
if (mInputView != null) { if (mInputView != null) {
mInputView.closing(); mInputView.closing();
} }
if (VOICE_INSTALLED & mRecognizing) { if (VOICE_INSTALLED && mRecognizing) {
mVoiceInput.cancel(); mVoiceInput.cancel();
} }
} }