Merge "fix calling SoundTriggerMiddleware in safeMode" into rvc-dev am: de1f26432c am: 3299b363d2 am: 9ca1051114 am: 733e2ce884
Change-Id: I265d732fdbd5a18385caed49043309525e618263
This commit is contained in:
@@ -346,12 +346,15 @@ public class SoundTriggerService extends SystemService {
|
||||
sEventLogger.log(new SoundTriggerLogger.StringEvent("deleteSoundModel(): id = "
|
||||
+ soundModelId));
|
||||
|
||||
// Unload the model if it is loaded.
|
||||
mSoundTriggerHelper.unloadGenericSoundModel(soundModelId.getUuid());
|
||||
mDbHelper.deleteGenericSoundModel(soundModelId.getUuid());
|
||||
if (isInitialized()) {
|
||||
// Unload the model if it is loaded.
|
||||
mSoundTriggerHelper.unloadGenericSoundModel(soundModelId.getUuid());
|
||||
|
||||
// Stop recognition if it is started.
|
||||
mSoundModelStatTracker.onStop(soundModelId.getUuid());
|
||||
// Stop tracking recognition if it is started.
|
||||
mSoundModelStatTracker.onStop(soundModelId.getUuid());
|
||||
}
|
||||
|
||||
mDbHelper.deleteGenericSoundModel(soundModelId.getUuid());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user