commit | 9b0bb63ed7fe0b7d8747f20cd2cc674fd491f3a3 | [log] [tgz] |
---|---|---|
author | Ugo Yu <ugoyu@google.com> | Mon Mar 09 15:42:46 2020 +0800 |
committer | Ugo Yu <ugoyu@google.com> | Wed Apr 08 01:21:22 2020 +0000 |
tree | 9e4700a853ddce31429cdfd0ae86faf4018a1eaf | |
parent | 9f16f2665a878a0f08fb73bd56ba1f703c35db4f [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 Merged-In: Ia79f6bd1fd6ffab814a15053aeaae031faf875dd