Set HotwordDetectionService priority same as VIS.

VoiceInteractionService is bound with the BIND_FOREGROUND_SERVICE flag.
Do the same for the HotwordDetectionService now.

Test: manual
Fix: 206812592
Change-Id: Iddd992fe475976ac68b91580c67525f56d534e32
This commit is contained in:
Ahaan Ugale
2021-11-17 10:07:20 -08:00
parent a307ec79f5
commit 643eb06ced

View File

@@ -841,7 +841,7 @@ final class HotwordDetectionConnection {
try {
return mContext.bindIsolatedService(
mIntent,
Context.BIND_AUTO_CREATE | mBindingFlags,
Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE | mBindingFlags,
"hotword_detector_" + mInstanceNumber,
mExecutor,
serviceConnection);