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

Commit 13490307 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android (Google) Code Review
Browse files

Merge "Fix crash during unpair."

parents 88c477ba f7bc4bd1
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);
        }