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

Commit eaffc0e2 authored by Ted Wang's avatar Ted Wang
Browse files

Add Sap service into disconnect all enabled profiles process

Tag: #compatibility
Bug: 181198939
Test: make
Change-Id: Id4198c3a1fc9a697e6d5aa1a5f820dbfe87d99db
parent ca52c5d3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2632,6 +2632,11 @@ public class AdapterService extends Service {
            Log.i(TAG, "disconnectAllEnabledProfiles: Disconnecting Hearing Aid Profile");
            mHearingAidService.disconnect(device);
        }
        if (mSapService != null && mSapService.getConnectionState(device)
                == BluetoothProfile.STATE_CONNECTED) {
            Log.i(TAG, "disconnectAllEnabledProfiles: Disconnecting Sap Profile");
            mSapService.disconnect(device);
        }

        return true;
    }