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

Commit e89d040b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Called onError() when HotwordDetectionService process died" into sc-dev am: 97be3198

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879196

Change-Id: I467dd549a93f4cea441d7d76f736e7ffc61fd39b
parents 40f0bb14 97be3198
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -131,6 +131,17 @@ final class HotwordDetectionConnection {
            protected long getAutoDisconnectTimeoutMs() {
            protected long getAutoDisconnectTimeoutMs() {
                return -1;
                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();
        mRemoteHotwordDetectionService.connect();
        if (callback == null) {
        if (callback == null) {