summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSungsoo Lim <sungsoo@google.com>2014-08-13 17:30:04 +0900
committerSungsoo Lim <sungsoo@google.com>2014-08-13 08:32:29 +0000
commita9a29a29e55380ebd30175a75b285b16201002b6 (patch)
treed50d9c6cb36edeabf0f186861bdce0902c79ce6d
parent09015492e52299bdf810f95e6aa9262e69879827 (diff)
downloadframeworks_base-a9a29a29e55380ebd30175a75b285b16201002b6.zip
frameworks_base-a9a29a29e55380ebd30175a75b285b16201002b6.tar.gz
frameworks_base-a9a29a29e55380ebd30175a75b285b16201002b6.tar.bz2
Fix hashCode of TvContentRating
Bug: 16963556 Change-Id: I0d419e4a47cd4b0a364d3b05063dcdbfc8a168ae
-rw-r--r--media/java/android/media/tv/TvContentRating.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/tv/TvContentRating.java b/media/java/android/media/tv/TvContentRating.java
index 25252ed..3e5ecef 100644
--- a/media/java/android/media/tv/TvContentRating.java
+++ b/media/java/android/media/tv/TvContentRating.java
@@ -1480,7 +1480,7 @@ public final class TvContentRating {
Arrays.sort(subRatings);
mSubRatings = subRatings;
}
- mHashCode = Objects.hash(mDomain, mRating, mSubRatings);
+ mHashCode = 31 * Objects.hash(mDomain, mRating) + Arrays.hashCode(mSubRatings);
}
/**