HID: Add proper check to disconnect based on user preference
Usecase:
1) Pair and connect with BR/EDR HID Device
2) After connection, disable Input device from Settings
3) Send connect request from remote device. Connection should fail
4) Enable Input device again from settings.
5) Send connect request from Remote device
Expected Result:
Connection should succed after step 5.
Observed Result:
Re-connection fails after steps 5
Fix:
Add check to disconnect HID Device if user has explictly disabled
Input Device from Settings App, i.e. when device is bonded and Priority
is OFF. In other cases continue to virtually unplug Remote device.
CRs-Fixed: 2421269
Change-Id: Ib602e096cc4beab4e21d0c1f6165dc488ecbd719
1 file changed