OSDN Git Service

Map Bluetooth profiles correctly in isProfileDisabled helper function.
authorBryce Lee <brycelee@google.com>
Fri, 18 Dec 2015 19:33:47 +0000 (11:33 -0800)
committerBryce Lee <brycelee@google.com>
Fri, 18 Dec 2015 19:33:47 +0000 (11:33 -0800)
Change-Id: Ic38736a653e6413f1f3bb41c8dfe049abe8883f0

src/com/android/bluetooth/btservice/Config.java

index d176d78..0fc4718 100644 (file)
@@ -117,9 +117,9 @@ public class Config {
         } 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) {