am bd17cc35
: am 76ffaaa2
: am ad1f28cd
: Device Discoverability not set properly when Bluetooth is toggled
* commit 'bd17cc3560c3697e8319e3012ebcde4c659a55d2': Device Discoverability not set properly when Bluetooth is toggled
This commit is contained in:
4
src/com/android/settings/bluetooth/BluetoothSettings.java
Executable file → Normal file
4
src/com/android/settings/bluetooth/BluetoothSettings.java
Executable file → Normal file
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user