Make BluetoothStateChangeCallback oneway to prevent waiting on response.
Test: Connected bluetooth devices(included Headset/HID devices), and made bluetooth enabling/disabling over 1000 times, no other side effect observed. Bug: 38485770 Change-Id: Ia3959d2441aece39a79ab2d662b57790a78df674 Signed-off-by: xutianguo <xutianguo@xiaomi.com> (cherry picked from commit 95e1e21a639318bb3399c394707624393cfa2300)
This commit is contained in:
@@ -21,7 +21,7 @@ package android.bluetooth;
|
||||
*
|
||||
* {@hide}
|
||||
*/
|
||||
interface IBluetoothStateChangeCallback
|
||||
oneway interface IBluetoothStateChangeCallback
|
||||
{
|
||||
void onBluetoothStateChange(boolean on);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user