Loading android/app/src/com/android/bluetooth/btservice/BondStateMachine.java +4 −3 Original line number Diff line number Diff line Loading @@ -273,8 +273,9 @@ final class BondStateMachine extends StateMachine { } BluetoothClass btClass = dev.getBluetoothClass(); int btDeviceClass = btClass.getDeviceClass(); if (btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD || btDeviceClass int btDeviceClass = btClass == null ? 0 : btClass.getDeviceClass(); if (btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD || btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING) { // Its a keyboard. Follow the HID spec recommendation of creating the // passkey and displaying it to the user. If the keyboard doesn't follow Loading Loading
android/app/src/com/android/bluetooth/btservice/BondStateMachine.java +4 −3 Original line number Diff line number Diff line Loading @@ -273,8 +273,9 @@ final class BondStateMachine extends StateMachine { } BluetoothClass btClass = dev.getBluetoothClass(); int btDeviceClass = btClass.getDeviceClass(); if (btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD || btDeviceClass int btDeviceClass = btClass == null ? 0 : btClass.getDeviceClass(); if (btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD || btDeviceClass == BluetoothClass.Device.PERIPHERAL_KEYBOARD_POINTING) { // Its a keyboard. Follow the HID spec recommendation of creating the // passkey and displaying it to the user. If the keyboard doesn't follow Loading