Merge "Don't enable Bluetooth when booting into airplane mode."

This commit is contained in:
Jake Hamby
2011-06-27 16:45:50 -07:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}