Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42683601 authored by Charles Chen's avatar Charles Chen Committed by Android (Google) Code Review
Browse files

Merge "Perform checking for restarting SandboxedDetectionProcesses"

parents fbdeddab 57b3fe5a
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -445,9 +445,15 @@ final class HotwordDetectionConnection {
        // Recreate connection to reset the cache.
        mRestartCount++;

        mRemoteHotwordDetectionService = mHotwordDetectionServiceConnectionFactory.createLocked();
        if (oldHotwordConnection != null) {
            mRemoteHotwordDetectionService =
                    mHotwordDetectionServiceConnectionFactory.createLocked();
        }

        if (oldVisualQueryDetectionConnection != null) {
            mRemoteVisualQueryDetectionService =
                    mVisualQueryDetectionServiceConnectionFactory.createLocked();
        }

        Slog.v(TAG, "Started the new process, dispatching processRestarted to detector");
        runForEachDetectorSessionLocked((session) -> {