am 75370e74: Merge "Fixing: RecognitionService logcat spam "cancel called..."" into froyo

Merge commit '75370e74629b4938c4472d6001eebf5e305dbc55' into froyo-plus-aosp

* commit '75370e74629b4938c4472d6001eebf5e305dbc55':
  Fixing: RecognitionService logcat spam "cancel called..."
This commit is contained in:
Bjorn Bringert
2010-05-07 03:40:31 -07:00
committed by Android Git Automerger

View File

@ -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