Fix incorrect trusted hotword metric

It doesn't pass the right value into trusted hotword
metrics when creating trusted hotword detector.

Test: Build pass
Bug: 259212509
Change-Id: I5ab23ccc88c0c1221a2b2843f90f787346df41b7
(cherry picked from commit 550ff9e292)
Merged-In: I5ab23ccc88c0c1221a2b2843f90f787346df41b7
This commit is contained in:
lpeter
2022-11-15 17:50:20 +08:00
committed by Peter Li
parent f265073fee
commit e4de247033

View File

@@ -620,7 +620,7 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne
private void logDetectorCreateEventIfNeeded(IHotwordRecognitionStatusCallback callback,
int detectorType, boolean isCreated, int voiceInteractionServiceUid) {
if (callback != null) {
HotwordMetricsLogger.writeDetectorCreateEvent(detectorType, true,
HotwordMetricsLogger.writeDetectorCreateEvent(detectorType, isCreated,
voiceInteractionServiceUid);
}