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

Commit c89d8db6 authored by Michael Dooley's avatar Michael Dooley Committed by Android (Google) Code Review
Browse files

Merge "Treat getModelState recognition events the same as regular recognition events."

parents 97b0ca1e 9b20c1cd
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -939,11 +939,7 @@ public class SoundTriggerService extends SystemService {
            runOrAddOperation(new Operation(
                    // always execute:
                    () -> {
                        // Don't remove the callback if multiple triggers are allowed or
                        // if this event was triggered by a getModelState request
                        if (!mRecognitionConfig.allowMultipleTriggers
                                && event.status
                                    != SoundTrigger.RECOGNITION_STATUS_GET_STATE_RESPONSE) {
                        if (!mRecognitionConfig.allowMultipleTriggers) {
                            // Unregister this remoteService once op is done
                            synchronized (mCallbacksLock) {
                                mCallbacks.remove(mPuuid.getUuid());