Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a59ca7fb authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge "HID: Send connection state change broadcast during cleanup"

am: 2f6c91fc

Change-Id: I35985711ac5708e021826a18a77ea3048d7bf829
parents 3506d7dd 2f6c91fc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();