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

Commit 7424e253 authored by Chris Thornton's avatar Chris Thornton Committed by android-build-merger
Browse files

Merge "If stopAllRecognitions is supported, do not call stopRecognition...

Merge "If stopAllRecognitions is supported, do not call stopRecognition again." into oc-mr1-dev am: 1a6ee56d
am: 29c9060b

Change-Id: Ic1e468e2f1ff0b4e8fe3148a5b92c35b82c23b75
parents 0449d62b 29c9060b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -840,7 +840,7 @@ void SoundTriggerHwService::Module::setCaptureState_l(bool active)
        }

        const bool supports_stop_all =
                (mHalInterface != 0) && (mHalInterface->stopAllRecognitions() == ENOSYS);
                (mHalInterface != 0) && (mHalInterface->stopAllRecognitions() != -ENOSYS);

        for (size_t i = 0; i < mModels.size(); i++) {
            sp<Model> model = mModels.valueAt(i);