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

Commit f7bc4bd1 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Fix crash during unpair.

Change-Id: I8901abbbb6593b78fb5df93ab5d0085b32b6ba94
parent 421f0101
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ class BluetoothBondState {
        mService = service;
        mBluetoothInputProfileHandler =
            BluetoothInputProfileHandler.getInstance(mContext, mService);
        getProfileProxy();
    }

    synchronized void setPendingOutgoingBonding(String address) {
@@ -131,10 +132,6 @@ class BluetoothBondState {

        if (state == BluetoothDevice.BOND_BONDED) {
            mService.addProfileState(address);
        } else if (state == BluetoothDevice.BOND_BONDING) {
            if (mA2dpProxy == null || mHeadsetProxy == null) {
                getProfileProxy();
            }
        } else if (state == BluetoothDevice.BOND_NONE) {
            mService.removeProfileState(address);
        }