diff options
author | Ugo Yu <ugoyu@google.com> | 2021-06-02 14:30:37 +0800 |
---|---|---|
committer | Myles Watson <mylesgw@google.com> | 2021-07-30 22:09:38 +0000 |
commit | d7cf1c83e412d47a3b24c601d18f6cf7bdf6f870 (patch) | |
tree | ea7d52560896edba3504f9ec9ed3811b233161bd /framework/java/android/bluetooth/BluetoothProfile.java | |
parent | 08fa792031a529c1558250845e3d811ebcc0f6d0 (diff) |
Broadcast Bluetooth state to OFF properly
In current logic, we broadcast Bluetooth state OFF at BLE_ON state.
However, if Bluetooth gets crashed, we won't have the chance to send OFF
intent as we never get to BLE_ON.
This change makes the BluetoothManagerService skips the OFF intent only
if the previous state is a BLE state.
Bug: 189271317
Test: manual
Change-Id: I3936766ab8bdd45d59550dacb64bdc0323bb424d
Merged-In: I3936766ab8bdd45d59550dacb64bdc0323bb424d
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
0 files changed, 0 insertions, 0 deletions