aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-02-05 12:11:59 +0000
committerKristian Monsen <kristianm@google.com>2010-02-05 12:11:59 +0000
commit1322b7f899e9d3ccfb91d9e3ede99b3ad336c354 (patch)
tree433907b460d8e0993c27f7e57ccf4187064b6504 /src
parent2e3aa86cf389236c085ab4758239b01e80c3b2dc (diff)
downloadlatinime-1322b7f899e9d3ccfb91d9e3ede99b3ad336c354.tar.gz
latinime-1322b7f899e9d3ccfb91d9e3ede99b3ad336c354.tar.xz
latinime-1322b7f899e9d3ccfb91d9e3ede99b3ad336c354.zip
fixing ime crash in emulator
Just guarding some calls with if (VOICE_INSTALLED). Also added an &, probably a typo.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/inputmethod/latin/LatinIME.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index ef761a06e..8b9c0cac7 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -565,14 +565,18 @@ public class LatinIME extends InputMethodService
public void onFinishInput() {
super.onFinishInput();
- if (mAfterVoiceInput) mVoiceInput.logInputEnded();
+ if (VOICE_INSTALLED && mAfterVoiceInput) {
+ mVoiceInput.logInputEnded();
+ }
- mVoiceInput.flushLogs();
+ if (VOICE_INSTALLED) {
+ mVoiceInput.flushLogs();
+ }
if (mInputView != null) {
mInputView.closing();
}
- if (VOICE_INSTALLED & mRecognizing) {
+ if (VOICE_INSTALLED && mRecognizing) {
mVoiceInput.cancel();
}
}