Merge "Include BLE<->SPP transition states in isLeEnabled"

am: ac413db400

Change-Id: I15a67ad7b277b345b96f2a7cf852554ed6fee267
This commit is contained in:
Dan Harms
2019-09-01 14:59:54 -07:00
committed by android-build-merger

View File

@@ -858,7 +858,10 @@ public final class BluetoothAdapter {
if (DBG) {
Log.d(TAG, "isLeEnabled(): " + BluetoothAdapter.nameForState(state));
}
return (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_BLE_ON);
return (state == BluetoothAdapter.STATE_ON
|| state == BluetoothAdapter.STATE_BLE_ON
|| state == BluetoothAdapter.STATE_TURNING_ON
|| state == BluetoothAdapter.STATE_TURNING_OFF);
}
/**