Merge "Fixing: RecognitionService logcat spam "cancel called..."" into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
75370e7462
@ -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
|
||||
|
Reference in New Issue
Block a user