OSDN Git Service

Fix Bluetooth GATT API default handler assignment
authorRuben Brunk <rubenbrunk@google.com>
Mon, 1 May 2017 23:57:31 +0000 (16:57 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 3 May 2017 00:11:10 +0000 (00:11 +0000)
commit6bdc550e27e2c4e7b32bb91085eaac898d7d1156
treea3228bef46225adea2df3459f126112872ff780c
parent0fe5a2d5b32ac2db3f88744f88526dbbbb35f780
Fix Bluetooth GATT API default handler assignment

Restores previous behaviour where GATT callbacks are invoked on the
binder thread and not the calling process main looper thread.

This fixes performance regressions as well as some
NetworkOnMainThreadException's for some applications.

Bug: 37544152
Bug: 37871717
Test: Covered by prior API tests.
Change-Id: Id8ab705dd4d7f00030e6ac29e056dde5180670e9
core/java/android/bluetooth/BluetoothDevice.java
core/java/android/bluetooth/BluetoothGatt.java