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

Commit 568efb06 authored by lpeter's avatar lpeter
Browse files

Called onError() when HotwordDetectionService process died

Bug: 189887779
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I98659f4c4553b6c9da31829016419871756d34c9
parent d1251db4
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -131,6 +131,17 @@ final class HotwordDetectionConnection {
            protected long getAutoDisconnectTimeoutMs() {
                return -1;
            }

            @Override
            public void binderDied() {
                super.binderDied();
                Slog.w(TAG, "binderDied");
                try {
                    callback.onError(-1);
                } catch (RemoteException e) {
                    Slog.w(TAG, "Failed to report onError status: " + e);
                }
            }
        };
        mRemoteHotwordDetectionService.connect();
        if (callback == null) {