Skip to content

Commit

Permalink
Added missing equality check on previous state
Browse files Browse the repository at this point in the history
  • Loading branch information
robholmes committed Feb 2, 2017
1 parent b7f5391 commit 7bc13cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7bc13cc

Please sign in to comment.