commit | 995c90aa1856e8ef7b3397b775720941d3dcb133 | [log] [tgz] |
---|---|---|
author | Christine Hallstrom <hallstrom@google.com> | Wed May 25 15:49:08 2016 -0700 |
committer | Christine Hallstrom <hallstrom@google.com> | Thu May 26 13:20:56 2016 -0700 |
tree | 997157f84ee0dbfcd34d5fe862ad53203f1bf53b | |
parent | ce8e88aaabdca9572a17e59e4d54db055a11e10a [diff] |
Properly check if BT is off when shutting down radios Use BluetoothAdapter#getState() instead of BluetoothAdapter#isEnabled() when checking if Bluetooth has turned off, as isEnabled() is set to false early in the shutdown process and getState() provides a better indication of the state of BT. Bug: 27354612 Change-Id: Ic7828f0726491d49c9a14ba5d654b24f66743662