Merge "Shutdown hotword detection service when software hotword detector is shutdown" into sc-dev
This commit is contained in:
@@ -520,6 +520,12 @@ public class VoiceInteractionService extends Service {
|
|||||||
// Ignore.
|
// Ignore.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
mSystemService.shutdownHotwordDetectionService();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
// Ignore.
|
||||||
|
}
|
||||||
|
|
||||||
mSoftwareHotwordDetector = null;
|
mSoftwareHotwordDetector = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user