Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b0c7ab6 authored by Valentin Kravtsov's avatar Valentin Kravtsov
Browse files

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
parent 3bb5e4d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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