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

Commit 6ddf0be5 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
Merged-In: I940fa47195d12be6b8377e1025f4236cd10c05c4
(cherry picked from commit 0267a3341e200b2758441f5868824b907effc946)
parent 0130cc36
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));
    }

    /**