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

Commit 2168db19 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix AudioVolumeGroup equality check"

parents 31b64067 d2eaa1eb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ public final class AudioVolumeGroup implements Parcelable {
    /**
     * human-readable name of this volume group.
     */
    private final String mName;
    private final @NonNull String mName;

    private final AudioAttributes[] mAudioAttributes;
    private int[] mLegacyStreamTypes;
@@ -113,7 +113,7 @@ public final class AudioVolumeGroup implements Parcelable {

        AudioVolumeGroup thatAvg = (AudioVolumeGroup) o;

        return mName == thatAvg.mName && mId == thatAvg.mId
        return mName.equals(thatAvg.mName) && mId == thatAvg.mId
                && Arrays.equals(mAudioAttributes, thatAvg.mAudioAttributes);
    }