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

Commit da94981b authored by John Reck's avatar John Reck
Browse files

Fix ColorSpace#get allocating

Test: none
Change-Id: Ia4d380a74ac8f99ac408f52a602713823db43f50
parent 3441faa0
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];
    }