Skip to content

Commit 2b0c7ab

Browse files
author
Valentin Kravtsov
committed
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
1 parent 3bb5e4d commit 2b0c7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/speech/RecognitionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void dispatchStopListening(IRecognitionListener listener) {
118118

119119
private void dispatchCancel(IRecognitionListener listener) {
120120
if (mCurrentCallback == null) {
121-
Log.w(TAG, "cancel called with no preceding startListening - ignoring");
121+
if (DBG) Log.d(TAG, "cancel called with no preceding startListening - ignoring");
122122
} else if (mCurrentCallback.mListener.asBinder() != listener.asBinder()) {
123123
Log.w(TAG, "cancel called by client who did not call startListening - ignoring");
124124
} else { // the correct state

0 commit comments

Comments
 (0)