diff --git a/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/ConnectionStateEvent.java b/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/ConnectionStateEvent.java index 7131f57..e780790 100644 --- a/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/ConnectionStateEvent.java +++ b/rxbluetooth/src/main/java/com/github/ivbaranov/rxbluetooth/ConnectionStateEvent.java @@ -59,6 +59,7 @@ public BluetoothDevice getBluetoothDevice() { ConnectionStateEvent that = (ConnectionStateEvent) o; if (mState != that.mState) return false; + if (mPreviousState != that.mPreviousState) return false; return !(mBluetoothDevice != null ? !mBluetoothDevice.equals(that.mBluetoothDevice) : that.mBluetoothDevice != null); }