OSDN Git Service

Bluetooth: HID: Use proper values of connection status
authorHemant Gupta <hemantg@codeaurora.org>
Tue, 24 Dec 2013 08:22:36 +0000 (13:52 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 23 Apr 2015 21:30:03 +0000 (21:30 +0000)
commitdd796e81c32293ec4425e7f0ad964a84af0df5ce
tree4b528c1d3fec23269c6c83ca4b8bb8326e764b5e
parent377c7c9afa2b1b827ba10a67185c5c2248e3e7df
Bluetooth: HID: Use proper values of connection status

This patch fixes issue in retrieving correct connection status when
more than one hid device was connected to DUT. In such situation
current implementation was sending STATE_DISCONNECTED as connection
state because of wrong check of matching device as 1st device in
connected device list. Instead of this now actual connection state
device is retrieved from HidService.

Change-Id: I2c766e9fc6eb9e97c3745016e38fa5c374c16539
src/com/android/settings/bluetooth/HidProfile.java [changed mode: 0755->0644]