Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8d973d5 authored by Jack He's avatar Jack He
Browse files

Fix hash function in BluetoothLeAudioContentMetadata

Arrays.hashCode should be used when hasing arrays

Bug: 229790402
Test: atest CtsBluetoothTestCases
Change-Id: I940fa47195d12be6b8377e1025f4236cd10c05c4
parent 1fdef3c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ public final class BluetoothLeAudioContentMetadata implements Parcelable {

    @Override
    public int hashCode() {
        return Objects.hash(mProgramInfo, mLanguage, mRawMetadata);
        return Objects.hash(mProgramInfo, mLanguage, Arrays.hashCode(mRawMetadata));
    }

    /**