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

Commit 2f6c91fc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents b08f1705 7d86ab10
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -97,6 +97,12 @@ public class HidService extends ProfileService {
        }
        }


        if(mInputDevices != null) {
        if(mInputDevices != null) {
            for (BluetoothDevice device : mInputDevices.keySet()) {
                int inputDeviceState = getConnectionState(device);
                if (inputDeviceState != BluetoothProfile.STATE_DISCONNECTED) {
                    broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED);
                }
            }
            mInputDevices.clear();
            mInputDevices.clear();
        }
        }
        clearHidService();
        clearHidService();