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

Commit 04dd3e69 authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Disconnect HandsFree Profile Client on shutdown."

am: 88560a69

Change-Id: I08e12d12289bbd79cbe2e9ea5e965cfb6140665e
parents f68cb034 88560a69
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -776,6 +776,9 @@ public class HeadsetClientStateMachine extends StateMachine {

    public void doQuit() {
        Log.d(TAG, "doQuit");
        if (mCurrentDevice != null) {
            NativeInterface.disconnectNative(getByteAddress(mCurrentDevice));
        }
        routeHfpAudio(false);
        returnAudioFocusIfNecessary();
        quitNow();