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

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

Merge "Disconnect HandsFree Profile Client on shutdown." am: 24cb9704

am: 0ed8d996

Change-Id: I9b44ca0893fa3aeae3b2f885792fc0739d8b09ed
parents d5c5a256 0ed8d996
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();