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

Commit 97be3198 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Called onError() when HotwordDetectionService process died" into sc-dev

parents e249d349 568efb06
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) {