Loading core/java/android/bluetooth/BluetoothGatt.java +4 −2 Original line number Diff line number Diff line Loading @@ -645,6 +645,9 @@ public final class BluetoothGatt implements BluetoothProfile { } mConnState = CONN_STATE_CONNECTING; } mAutoConnect = autoConnect; if (!registerApp(callback)) { synchronized(mStateLock) { mConnState = CONN_STATE_IDLE; Loading @@ -653,8 +656,7 @@ public final class BluetoothGatt implements BluetoothProfile { return false; } // the connection will continue after successful callback registration mAutoConnect = autoConnect; // The connection will continue in the onClientRegistered callback return true; } Loading Loading
core/java/android/bluetooth/BluetoothGatt.java +4 −2 Original line number Diff line number Diff line Loading @@ -645,6 +645,9 @@ public final class BluetoothGatt implements BluetoothProfile { } mConnState = CONN_STATE_CONNECTING; } mAutoConnect = autoConnect; if (!registerApp(callback)) { synchronized(mStateLock) { mConnState = CONN_STATE_IDLE; Loading @@ -653,8 +656,7 @@ public final class BluetoothGatt implements BluetoothProfile { return false; } // the connection will continue after successful callback registration mAutoConnect = autoConnect; // The connection will continue in the onClientRegistered callback return true; } Loading