Merge "fix calling SoundTriggerMiddleware in safeMode" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
de1f26432c
@@ -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