Skip to content

Commit 75370e7

Browse files
Bjorn BringertAndroid (Google) Code Review
authored andcommitted
Merge "Fixing: RecognitionService logcat spam "cancel called..."" into froyo
2 parents 8a8658a + 2b0c7ab commit 75370e7

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)