summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHeadsetClient.java
diff options
context:
space:
mode:
authorUgo Yu <ugoyu@google.com>2020-03-09 15:42:46 +0800
committerMyles Watson <mylesgw@google.com>2020-04-07 16:34:17 +0000
commit9d30d542c8c6240a3de0637cec05774c1d4fffe8 (patch)
treed336c1473162d83f3d1f0b8828219fec7e810598 /framework/java/android/bluetooth/BluetoothHeadsetClient.java
parentbc501515725739c19505b40ab78202f1a2f9a07c (diff)
Synchronize adapter registration with mCallbacks
Move register/unregister callback to the caller thread. This fixes a problem that if an app registers adapter while the BluetoothManagerService is turning on Bluetooth, the app would get a null IBluetooth and would not receive any callback after Bluetooth is turned on. Bug: 149890859 Test: Manual Change-Id: Ia79f6bd1fd6ffab814a15053aeaae031faf875dd
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHeadsetClient.java')
0 files changed, 0 insertions, 0 deletions