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

Commit 91fb4184 authored by Johanna Ye's avatar Johanna Ye
Browse files

Comment clarification and minor cleanup in HidHostService.

Tag: #stability
Bug: 174127136
Test: manual through repeated connections in ADT3 OOBE
Change-Id: I20006aa6e6be2e4519d9e53245d240ed27e54871
parent a3ed9de4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -493,7 +493,7 @@ public class HidHostService extends ProfileService {
     * Connects the hid host profile for the passed in device
     *
     * @param device is the device with which to connect the hid host profile
     * @return true if connection is successful, false otherwise
     * @return true if connection request is passed down to mHandler.
     */
    public boolean connect(BluetoothDevice device) {
        if (DBG) Log.d(TAG, "connect: " + device.getAddress());
@@ -624,8 +624,6 @@ public class HidHostService extends ProfileService {
        Message msg = mHandler.obtainMessage(MESSAGE_GET_PROTOCOL_MODE, device);
        mHandler.sendMessage(msg);
        return true;
        /* String objectPath = getObjectPathFromAddress(device.getAddress());
            return getProtocolModeInputDeviceNative(objectPath);*/
    }

    boolean virtualUnplug(BluetoothDevice device) {