commit | 86a7fe21b195ef34a5e41236674a043fda9b7620 | [log] [tgz] |
---|---|---|
author | Ugo Yu <ugoyu@google.com> | Wed Jun 02 14:30:37 2021 +0800 |
committer | Myles Watson <mylesgw@google.com> | Fri Jul 30 22:09:38 2021 +0000 |
tree | 1c3feb148d1d2bcc30dca1aa1d2a709ed5747449 | |
parent | 9ef59ac901a87d30920db6aa8541bdaab67f7433 [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