fixing ime crash in emulator
Just guarding some calls with if (VOICE_INSTALLED). Also added an &, probably a typo.main
parent
2e3aa86cf3
commit
1322b7f899
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
mVoiceInput.flushLogs();
|
if (VOICE_INSTALLED) {
|
||||||
|
mVoiceInput.flushLogs();
|
||||||
|
}
|
||||||
|
|
||||||
if (mInputView != null) {
|
if (mInputView != null) {
|
||||||
mInputView.closing();
|
mInputView.closing();
|
||||||
}
|
}
|
||||||
if (VOICE_INSTALLED & mRecognizing) {
|
if (VOICE_INSTALLED && mRecognizing) {
|
||||||
mVoiceInput.cancel();
|
mVoiceInput.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue