OSDN Git Service

Bluetooth: fix connectGatt overload invocations
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 7 Jun 2017 20:45:33 +0000 (13:45 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 8 Jun 2017 21:01:24 +0000 (21:01 +0000)
Merged-In: I726252e85e78bff2c9585332d2748a0d92a9f6d3
Test: sl4a GattOverBrEdrTest
Bug: 62387078
Change-Id: I5bfb87683e25f8862587e8000eb4c9bb6ff14f99

core/java/android/bluetooth/BluetoothDevice.java

index e8ad69d..7ff37d2 100644 (file)
@@ -1658,7 +1658,7 @@ public final class BluetoothDevice implements Parcelable {
      */
     public BluetoothGatt connectGatt(Context context, boolean autoConnect,
                                      BluetoothGattCallback callback, int transport) {
-        return (connectGatt(context, autoConnect,callback, TRANSPORT_AUTO, PHY_LE_1M_MASK));
+        return (connectGatt(context, autoConnect,callback, transport, PHY_LE_1M_MASK));
     }
 
     /**
@@ -1682,7 +1682,7 @@ public final class BluetoothDevice implements Parcelable {
      */
     public BluetoothGatt connectGatt(Context context, boolean autoConnect,
                                      BluetoothGattCallback callback, int transport, int phy) {
-        return connectGatt(context, autoConnect,callback, TRANSPORT_AUTO, PHY_LE_1M_MASK, null);
+        return connectGatt(context, autoConnect,callback, transport, phy, null);
     }
 
     /**