diff options
author | Avish Shah <avshah@broadcom.com> | 2015-06-19 16:50:39 +0530 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-07-01 01:35:29 +0000 |
commit | ad1f28cde0ec117a0d526bae61fb661587914f33 (patch) | |
tree | df8038cfe7e3f6cd1b9cbaa299396b3eb2bdf681 /src/com/android/settings/bluetooth | |
parent | 56594c6d61c63d6cab28b32f431f6f0d9c84af91 (diff) | |
download | packages_apps_Settings-ad1f28cde0ec117a0d526bae61fb661587914f33.zip packages_apps_Settings-ad1f28cde0ec117a0d526bae61fb661587914f33.tar.gz packages_apps_Settings-ad1f28cde0ec117a0d526bae61fb661587914f33.tar.bz2 |
Device Discoverability not set properly when Bluetooth is toggled
Issue:
When BT is turned off/on staying in the same BT Settings
screen discoverability was not set again.
Fix:
Handle setting discoverability Bluetooth state change
intents also when BT state is turned ON.
Bug: 21944289
Change-Id: Ic3c8d476c53673b21d40ea2bd9669758d89c2aee
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--[-rwxr-xr-x] | src/com/android/settings/bluetooth/BluetoothSettings.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 68f47e7..4c48981 100755..100644 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -416,6 +416,10 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem @Override public void onBluetoothStateChanged(int bluetoothState) { super.onBluetoothStateChanged(bluetoothState); + // If BT is turned off/on staying in the same BT Settings screen + // discoverability to be set again + if (BluetoothAdapter.STATE_ON == bluetoothState) + mInitiateDiscoverable = true; updateContent(bluetoothState); } |