Loading android/app/src/com/android/bluetooth/bas/BatteryStateMachine.java +2 −1 Original line number Diff line number Diff line Loading @@ -228,8 +228,9 @@ public class BatteryStateMachine extends StateMachine { mBluetoothGatt = mDevice.connectGatt(service, /*autoConnect=*/false, mGattCallback, TRANSPORT_AUTO, /*opportunistic=*/true, PHY_LE_1M_MASK | PHY_LE_2M_MASK, getHandler()); } else { mBluetoothGatt.connect(); } // opportunistic client will reconnect itself, no need to call mBluetoothGatt.connect() return mBluetoothGatt != null; } Loading Loading
android/app/src/com/android/bluetooth/bas/BatteryStateMachine.java +2 −1 Original line number Diff line number Diff line Loading @@ -228,8 +228,9 @@ public class BatteryStateMachine extends StateMachine { mBluetoothGatt = mDevice.connectGatt(service, /*autoConnect=*/false, mGattCallback, TRANSPORT_AUTO, /*opportunistic=*/true, PHY_LE_1M_MASK | PHY_LE_2M_MASK, getHandler()); } else { mBluetoothGatt.connect(); } // opportunistic client will reconnect itself, no need to call mBluetoothGatt.connect() return mBluetoothGatt != null; } Loading