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

Skip to content
Commit 52ddb9b5 authored by Matadeen Mishra's avatar Matadeen Mishra Committed by Linux Build Service Account
Browse files

BT: fix bluetooth process can't restart again

After enable timeout, com.android.bluetooth will be killed.
Then, com.android.bluetooth will restart.
MESSAGE_BLUETOOTH_SERVICE_CONNECTED will be sent to mHander
while recoverBluetoothServiceFromError is running.
At that time, we should not unbindService in recoverBluetoothServiceFromError.
Otherwise, after unbind, com.android.bluetooth will die, but
later mBluetooth will be assigned to adapterService in handleMessage of
MESSAGE_BLUETOOTH_SERVICE_CONNECTED. From then on, mBluetooth is not null,
but com.android.bluetooth is dead, and doBind will not be triggered again.

Change-Id: I5be867c774837be0efb504eff9352c245b432deb
CRs-Fixed: 1025113
parent 3416cb4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment