Merge "Shutdown hotword detection service when software hotword detector is shutdown" into sc-dev am: 870c4116c1 am: c8f6614a62 am: 40bfd87cdf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15461817

Change-Id: Ib6288b2b54c7d46d0afd40b3c1ee3f0c7c56587c
This commit is contained in:
Ahaan Ugale
2021-08-07 04:08:36 +00:00
committed by Automerger Merge Worker

View File

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