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

Commit 53e38f26 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

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

parents 9c88c1e9 d088e6b3
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();