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

Commit 459cb5cf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix ColorSpace#get allocating"

parents 57514fc1 da94981b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1380,9 +1380,9 @@ public abstract class ColorSpace {
     */
    @NonNull
    static ColorSpace get(@IntRange(from = MIN_ID, to = MAX_ID) int index) {
        if (index < 0 || index >= Named.values().length) {
        if (index < 0 || index >= sNamedColorSpaces.length) {
            throw new IllegalArgumentException("Invalid ID, must be in the range [0.." +
                    Named.values().length + ")");
                    sNamedColorSpaces.length + ")");
        }
        return sNamedColorSpaces[index];
    }