Skip to content

Commit

Permalink
Indentation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Oct 24, 2023
1 parent 59aeed8 commit bfcfdf9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ble/src/main/java/no/nordicsemi/android/ble/BleManagerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ public void onReceive(final Context context, final Intent intent) {

log(Log.DEBUG, () ->
"[Broadcast] Action received: " + BluetoothDevice.ACTION_BOND_STATE_CHANGED +
", bond state changed to: " + ParserUtils.bondStateToString(bondState) +
" (" + bondState + ")");
", bond state changed to: " + ParserUtils.bondStateToString(bondState) +
" (" + bondState + ")");

switch (bondState) {
case BluetoothDevice.BOND_NONE -> {
Expand Down Expand Up @@ -654,20 +654,20 @@ private boolean internalConnect(@NonNull final BluetoothDevice device,
postCallback(c -> c.onDeviceConnecting(device));
postConnectionStateChange(o -> o.onDeviceConnecting(device));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
int preferredPhy = PhyRequest.PHY_LE_1M_MASK;
if(connectRequest != null) {
preferredPhy = connectRequest.getPreferredPhy();
}
final int finalPreferredPhy = preferredPhy;
log(Log.DEBUG, () ->
"gatt = device.connectGatt(autoConnect = true, TRANSPORT_LE, "
+ ParserUtils.phyMaskToString(finalPreferredPhy) + ")");
bluetoothGatt = device.connectGatt(context, true, gattCallback,
BluetoothDevice.TRANSPORT_LE, preferredPhy, handler);
int preferredPhy = PhyRequest.PHY_LE_1M_MASK;
if(connectRequest != null) {
preferredPhy = connectRequest.getPreferredPhy();
}
final int finalPreferredPhy = preferredPhy;
log(Log.DEBUG, () ->
"gatt = device.connectGatt(autoConnect = true, TRANSPORT_LE, "
+ ParserUtils.phyMaskToString(finalPreferredPhy) + ")");
bluetoothGatt = device.connectGatt(context, true, gattCallback,
BluetoothDevice.TRANSPORT_LE, preferredPhy, handler);
} else {
// Instead, the gatt.connect() method will be used to reconnect to the same device.
// This method forces autoConnect = true (except on Android 14) even if the gatt was
// created with this flag set to false.
// created with this flag set to false.
log(Log.DEBUG, () -> "gatt.connect()");
bluetoothGatt.connect();
}
Expand Down Expand Up @@ -3260,7 +3260,7 @@ private boolean assignAndNotify(@NonNull final BluetoothDevice device,
}

private void assign(@NonNull final BluetoothGattDescriptor descriptor,
@NonNull final byte[] value) {
@NonNull final byte[] value) {
final boolean isShared = descriptorValues == null || !descriptorValues.containsKey(descriptor);
if (isShared) {
descriptor.setValue(value);
Expand Down

0 comments on commit bfcfdf9

Please sign in to comment.