Merge "Include BLE<->SPP transition states in isLeEnabled"
This commit is contained in:
@@ -858,7 +858,10 @@ public final class BluetoothAdapter {
|
|||||||
if (DBG) {
|
if (DBG) {
|
||||||
Log.d(TAG, "isLeEnabled(): " + BluetoothAdapter.nameForState(state));
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user