diff options
author | 2011-01-24 13:28:12 -0800 | |
---|---|---|
committer | 2011-01-24 13:28:12 -0800 | |
commit | bf51f4e1c7a03f09da5ef32ceb77910b0f8386c0 (patch) | |
tree | 8fcef2386804b7e1094a989e6e6ed5d654c2fb96 /java/src/com/android/inputmethod/voice | |
parent | c19efa2b2b9a2cbbf7564ec87e449d06422073a9 (diff) | |
parent | 12a339dd2e85c60313986ba44a7143fe62c134f4 (diff) | |
download | latinime-bf51f4e1c7a03f09da5ef32ceb77910b0f8386c0.tar.gz latinime-bf51f4e1c7a03f09da5ef32ceb77910b0f8386c0.tar.xz latinime-bf51f4e1c7a03f09da5ef32ceb77910b0f8386c0.zip |
am 12a339dd: am 47e48215: Merge "Add log for voice IME" into honeycomb
* commit '12a339dd2e85c60313986ba44a7143fe62c134f4':
Add log for voice IME
Diffstat (limited to 'java/src/com/android/inputmethod/voice')
-rw-r--r-- | java/src/com/android/inputmethod/voice/VoiceInput.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/voice/VoiceInput.java b/java/src/com/android/inputmethod/voice/VoiceInput.java index ffa349fde..20211d46c 100644 --- a/java/src/com/android/inputmethod/voice/VoiceInput.java +++ b/java/src/com/android/inputmethod/voice/VoiceInput.java @@ -17,6 +17,7 @@ package com.android.inputmethod.voice; import com.android.inputmethod.latin.EditingUtils; +import com.android.inputmethod.latin.LatinImeLogger; import com.android.inputmethod.latin.R; import android.content.ContentResolver; @@ -58,6 +59,7 @@ public class VoiceInput implements OnClickListener { private static final String EXTRA_CALLING_PACKAGE = "calling_package"; private static final String EXTRA_ALTERNATES = "android.speech.extra.ALTERNATES"; private static final int MAX_ALT_LIST_LENGTH = 6; + private static boolean DBG = LatinImeLogger.sDBG; private static final String DEFAULT_RECOMMENDED_PACKAGES = "com.android.mms " + @@ -313,8 +315,11 @@ public class VoiceInput implements OnClickListener { * @param swipe whether this voice input was started by swipe, for logging purposes */ public void startListening(FieldContext context, boolean swipe) { + if (DBG) { + Log.d(TAG, "startListening: " + context); + } mState = DEFAULT; - + Locale locale = Locale.getDefault(); String localeString = locale.getLanguage() + "-" + locale.getCountry(); |