Map Bluetooth profiles correctly in isProfileDisabled helper function.
Change-Id: Ic38736a653e6413f1f3bb41c8dfe049abe8883f0
diff --git a/src/com/android/bluetooth/btservice/Config.java b/src/com/android/bluetooth/btservice/Config.java
index d176d78..0fc4718 100644
--- a/src/com/android/bluetooth/btservice/Config.java
+++ b/src/com/android/bluetooth/btservice/Config.java
@@ -117,9 +117,9 @@
} else if (profile == A2dpSinkService.class) {
profileIndex = BluetoothProfile.A2DP_SINK;
} else if (profile == HidService.class) {
- profileIndex = BluetoothProfile.HID;
+ profileIndex = BluetoothProfile.INPUT_DEVICE;
} else if (profile == HealthService.class) {
- profileIndex = BluetoothProfile.HDP;
+ profileIndex = BluetoothProfile.HEALTH;
} else if (profile == PanService.class) {
profileIndex = BluetoothProfile.PAN;
} else if (profile == GattService.class) {