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

Commit a8688c25 authored by Prem Kumar's avatar Prem Kumar Committed by Android Git Automerger
Browse files

am 1eb534c3: Merge "Add HOGP as hid profile when the remote device contain...

am 1eb534c3: Merge "Add HOGP as hid profile when the remote device contain HOGP service" into lmp-dev

* commit '1eb534c3':
  Add HOGP as hid profile when the remote device contain HOGP service
parents faaa36c9 1eb534c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -215,7 +215,8 @@ public class AdapterService extends Service {
        // Set profile priorities only for the profiles discovered on the remote device.
        // Set profile priorities only for the profiles discovered on the remote device.
        // This avoids needless auto-connect attempts to profiles non-existent on the remote device
        // This avoids needless auto-connect attempts to profiles non-existent on the remote device
        if ((hidService != null) &&
        if ((hidService != null) &&
            (BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hid)) &&
            (BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hid) ||
             BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hogp)) &&
            (hidService.getPriority(device) == BluetoothProfile.PRIORITY_UNDEFINED)){
            (hidService.getPriority(device) == BluetoothProfile.PRIORITY_UNDEFINED)){
            hidService.setPriority(device,BluetoothProfile.PRIORITY_ON);
            hidService.setPriority(device,BluetoothProfile.PRIORITY_ON);
        }
        }