diff options
| author | 2010-05-04 20:53:52 +0100 | |
|---|---|---|
| committer | 2010-05-04 20:53:52 +0100 | |
| commit | 2b0c7ab6891294473136bb6f7f2e751d133ae8cf (patch) | |
| tree | 56b1f6c3602b1467dcc7a9e31c428044815e141b | |
| parent | 3bb5e4d322a6a7cda45e868dbe307c2dc3cf688e (diff) | |
Fixing: RecognitionService logcat spam "cancel called..."
Bug fix for: http://b/issue?id=2647644
RecognitionService logcat spam "cancel called with no preceding startListening - ignoring"
Change-Id: I1da8b4d40406929ed0225d40cfac629507e71c7e
| -rw-r--r-- | core/java/android/speech/RecognitionService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/speech/RecognitionService.java b/core/java/android/speech/RecognitionService.java index 1c1fa95d0379..75a5ed563600 100644 --- a/core/java/android/speech/RecognitionService.java +++ b/core/java/android/speech/RecognitionService.java @@ -118,7 +118,7 @@ public abstract class RecognitionService extends Service { private void dispatchCancel(IRecognitionListener listener) { if (mCurrentCallback == null) { - Log.w(TAG, "cancel called with no preceding startListening - ignoring"); + if (DBG) Log.d(TAG, "cancel called with no preceding startListening - ignoring"); } else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) { Log.w(TAG, "cancel called by client who did not call startListening - ignoring"); } else { // the correct state |