Loading android/app/src/com/android/bluetooth/hid/HidService.java +6 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,12 @@ public class HidService extends ProfileService { } if(mInputDevices != null) { for (BluetoothDevice device : mInputDevices.keySet()) { int inputDeviceState = getConnectionState(device); if (inputDeviceState != BluetoothProfile.STATE_DISCONNECTED) { broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); } } mInputDevices.clear(); } clearHidService(); Loading Loading
android/app/src/com/android/bluetooth/hid/HidService.java +6 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,12 @@ public class HidService extends ProfileService { } if(mInputDevices != null) { for (BluetoothDevice device : mInputDevices.keySet()) { int inputDeviceState = getConnectionState(device); if (inputDeviceState != BluetoothProfile.STATE_DISCONNECTED) { broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); } } mInputDevices.clear(); } clearHidService(); Loading