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

Commit 4679be52 authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Add hashCode to TvStreamConfig

Bug: b/340874436
Test: presubmit
Flag: EXEMPT bugfix
Change-Id: I854317289d65f3c4a64d3fcd1f17c81017f0a8ec
parent faba558b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

import java.util.Objects;

/**
 * @hide
 */
@@ -177,4 +179,9 @@ public class TvStreamConfig implements Parcelable {
            && config.mMaxWidth == mMaxWidth
            && config.mMaxHeight == mMaxHeight;
    }

    @Override
    public int hashCode() {
        return Objects.hash(mGeneration, mStreamId, mType, mMaxWidth, mMaxHeight);
    }
}