Merge "LE: Add support for the HID-over-GATT profile (3/3)" into klp-dev

This commit is contained in:
Zhihai Xu
2013-08-16 00:22:33 +00:00
committed by Android (Google) Code Review

View File

@@ -346,7 +346,8 @@ final class LocalBluetoothProfileManager {
removedProfiles.remove(mOppProfile);
}
if (BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hid) &&
if ((BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hid) ||
BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hogp)) &&
mHidProfile != null) {
profiles.add(mHidProfile);
removedProfiles.remove(mHidProfile);