Loading core/java/android/service/voice/VoiceInteractionService.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1066,7 +1066,9 @@ public class VoiceInteractionService extends Service { synchronized (mLock) { synchronized (mLock) { mActiveDetectors.forEach(detector -> { mActiveDetectors.forEach(detector -> { try { try { if (detector != mActiveVisualQueryDetector.getInitializationDelegate() // Skip destroying VisualQueryDetector if HotwordDetectors are created if (!(mActiveVisualQueryDetector != null && detector == mActiveVisualQueryDetector.getInitializationDelegate()) || shouldShutDownVisualQueryDetector) { || shouldShutDownVisualQueryDetector) { detector.destroy(); detector.destroy(); } } Loading Loading
core/java/android/service/voice/VoiceInteractionService.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1066,7 +1066,9 @@ public class VoiceInteractionService extends Service { synchronized (mLock) { synchronized (mLock) { mActiveDetectors.forEach(detector -> { mActiveDetectors.forEach(detector -> { try { try { if (detector != mActiveVisualQueryDetector.getInitializationDelegate() // Skip destroying VisualQueryDetector if HotwordDetectors are created if (!(mActiveVisualQueryDetector != null && detector == mActiveVisualQueryDetector.getInitializationDelegate()) || shouldShutDownVisualQueryDetector) { || shouldShutDownVisualQueryDetector) { detector.destroy(); detector.destroy(); } } Loading