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

Commit 3560692f authored by Peiyong Lin's avatar Peiyong Lin Committed by android-build-merger
Browse files

Merge "Make sure the color space range is checked properly." into qt-dev

am: 53e38f26

Change-Id: Ie0df202cd479cc062acd426af5553214b61ca1d2
parents 8ea093e8 53e38f26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1863,7 +1863,7 @@ public class ActivityManager {
            mTopActivityComponent = ComponentName.readFromParcel(source);
            mSnapshot = source.readParcelable(null /* classLoader */);
            int colorSpaceId = source.readInt();
            mColorSpace = colorSpaceId >= 0
            mColorSpace = colorSpaceId >= 0 && colorSpaceId < ColorSpace.Named.values().length
                    ? ColorSpace.get(ColorSpace.Named.values()[colorSpaceId])
                    : ColorSpace.get(ColorSpace.Named.SRGB);
            mOrientation = source.readInt();