Merge "Fix Bluetooth auto turns ON in airplane mode" am: 1b9f4dbd5d am: 4b6e138c0d
Change-Id: Ic88ce0c56206fdc9fb7c8ce7845e9592d02630c1
This commit is contained in:
@@ -969,6 +969,13 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
|
|||||||
Slog.e(TAG, "onBluetoothServiceUp: mBluetooth is null!");
|
Slog.e(TAG, "onBluetoothServiceUp: mBluetooth is null!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!mEnableExternal && !isBleAppPresent() && isAirplaneModeOn()) {
|
||||||
|
// Airplane mode is turned on while enabling BLE only mode, disable
|
||||||
|
// BLE now.
|
||||||
|
disableBleScanMode();
|
||||||
|
sendBrEdrDownCallback();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isBluetoothPersistedStateOnBluetooth() || !isBleAppPresent()) {
|
if (isBluetoothPersistedStateOnBluetooth() || !isBleAppPresent()) {
|
||||||
// This triggers transition to STATE_ON
|
// This triggers transition to STATE_ON
|
||||||
mBluetooth.onLeServiceUp();
|
mBluetooth.onLeServiceUp();
|
||||||
|
|||||||
Reference in New Issue
Block a user