Merge "Make the framework treat getModelState recognition events the same as regular recognition events"
diff --git a/services/soundtrigger/SoundTriggerHwService.cpp b/services/soundtrigger/SoundTriggerHwService.cpp
index 944abcc..fe2ccf2 100644
--- a/services/soundtrigger/SoundTriggerHwService.cpp
+++ b/services/soundtrigger/SoundTriggerHwService.cpp
@@ -765,10 +765,7 @@
}
recognitionEvent->capture_session = model->mCaptureSession;
- // Don't reset the model state if this recognition event is a get-state response
- if (recognitionEvent->status != RECOGNITION_STATUS_GET_STATE_RESPONSE) {
- model->mState = Model::STATE_IDLE;
- }
+ model->mState = Model::STATE_IDLE;
clients.add(model->mModuleClient);
}
} break;