Merge "Don't enable Bluetooth when booting into airplane mode."
This commit is contained in:
@@ -209,9 +209,11 @@ class ServerThread extends Thread {
|
||||
bluetoothA2dp);
|
||||
bluetooth.initAfterA2dpRegistration();
|
||||
|
||||
int airplaneModeOn = Settings.System.getInt(mContentResolver,
|
||||
Settings.System.AIRPLANE_MODE_ON, 0);
|
||||
int bluetoothOn = Settings.Secure.getInt(mContentResolver,
|
||||
Settings.Secure.BLUETOOTH_ON, 0);
|
||||
if (bluetoothOn > 0) {
|
||||
if (airplaneModeOn == 0 && bluetoothOn != 0) {
|
||||
bluetooth.enable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user