diff options
| author | Michael Wright <michaelwr@google.com> | 2016-07-26 18:18:53 +0100 |
|---|---|---|
| committer | Michael Wright <michaelwr@google.com> | 2016-07-26 18:18:53 +0100 |
| commit | 16ae0423516ec1146ff191b4e856e1a6f88ea495 (patch) | |
| tree | 4a36708bcc0f67479b0e494c1635200276eff270 /core/java/android/view/DisplayInfo.java | |
| parent | 4e40413c5069b1e6e4a4647269d8cd52f356a824 (diff) | |
Actually compare supported color modes.
Also, provide an equals implemenation for HdrCapabilities.
Bug: 30311415
Bug: 30367543
Change-Id: Ib8b9c9283519ae9baa48ecfecb8035848a9b29f0
Diffstat (limited to 'core/java/android/view/DisplayInfo.java')
| -rw-r--r-- | core/java/android/view/DisplayInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/DisplayInfo.java b/core/java/android/view/DisplayInfo.java index 49c3c46c86fc..bc40849a47bc 100644 --- a/core/java/android/view/DisplayInfo.java +++ b/core/java/android/view/DisplayInfo.java @@ -289,7 +289,7 @@ public final class DisplayInfo implements Parcelable { && modeId == other.modeId && defaultModeId == other.defaultModeId && colorMode == other.colorMode - && Objects.equal(supportedColorModes, other.supportedColorModes) + && Arrays.equals(supportedColorModes, other.supportedColorModes) && Objects.equal(hdrCapabilities, other.hdrCapabilities) && logicalDensityDpi == other.logicalDensityDpi && physicalXDpi == other.physicalXDpi |
