commit | 460748160558ef94befc0a923cc2aa51e388fbff | [log] [tgz] |
---|---|---|
author | Ugo Yu <ugoyu@google.com> | Mon Mar 09 15:42:46 2020 +0800 |
committer | Myles Watson <mylesgw@google.com> | Tue Apr 07 16:34:17 2020 +0000 |
tree | 0416129ffa0f2cefe3fda6159615b26d5c37f92e | |
parent | 328ef02bf3c19064a613b0a4445d8114d1a29beb [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