Merge "Shutdown hotword detection service when software hotword detector is shutdown" into sc-dev

This commit is contained in:
Ahaan Ugale
2021-08-07 03:10:13 +00:00
committed by Android (Google) Code Review

View File

@@ -520,6 +520,12 @@ public class VoiceInteractionService extends Service {
// Ignore. // Ignore.
} }
try {
mSystemService.shutdownHotwordDetectionService();
} catch (Exception ex) {
// Ignore.
}
mSoftwareHotwordDetector = null; mSoftwareHotwordDetector = null;
} }