diff options
author | Ram Periathiruvadi <ramperry@google.com> | 2017-05-03 19:11:20 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2017-05-16 00:22:55 +0000 |
commit | b722a1f11344499cc226a82b525fd4636cb1b676 (patch) | |
tree | a15076a9528a0851f461196bf184be60aedabb59 /framework/java/android/bluetooth/BluetoothManager.java | |
parent | 9df66430bd86a9fc8fcc7dfbaa3f878d33ce764e (diff) |
Fix for Bluetooth not restarting on User Switch
The flag that keeps track of the Bluetooth adapter status(mEnable) is
not guarded correctly and could go out of sync with the adapter status.
This causes User Switch handling to not function correctly since it
checks for the status of the mEnable flag before restarting Bluetooth.
This fix queries the Bluetooth Adapter for the status instead of using
the mEnable flag.
Bug: b/37648701
Test: Tested switching users multiple times in both phone and carkit.
Also tested pairing and connection for sanity.
Change-Id: I17facecf8e1de90df11c11d5b0a184f48a0356e4
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothManager.java')
0 files changed, 0 insertions, 0 deletions