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

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

Merge "Remove the isBound() check for HotwordDetectionService." into sc-qpr1-dev

parents efdb4f8a 74b69a25
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -269,13 +269,11 @@ final class HotwordDetectionConnection {
        Slog.v(TAG, "cancelLocked");
        clearDebugHotwordLoggingTimeoutLocked();
        mDebugHotwordLogging = false;
        if (mRemoteHotwordDetectionService.isBound()) {
        mRemoteHotwordDetectionService.unbind();
        LocalServices.getService(PermissionManagerServiceInternal.class)
                .setHotwordDetectionServiceProvider(null);
        mIdentity = null;
        updateServiceUidForAudioPolicy(Process.INVALID_UID);
        }
        mCancellationTaskFuture.cancel(/* may interrupt */ true);
        if (mAudioFlinger != null) {
            mAudioFlinger.unlinkToDeath(mAudioServerDeathRecipient, /* flags= */ 0);