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

Commit 9b20c1cd authored by mike dooley's avatar mike dooley
Browse files

Treat getModelState recognition events the same as regular recognition

events.

This change should have been part of ag/5933708

Test: manual test with NowPlaying app on p19 device

Change-Id: I42ed7c17ebdd2cb75055122b8d45302e28c510b6
parent c5a7c295
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());