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

Commit 46bf2029 authored by James O'Leary's avatar James O'Leary Committed by Automerger Merge Worker
Browse files

Merge "Ignore low chroma colors when calculating a hue's population" into sc-v2-dev am: 0c1eb6a2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16017740

Change-Id: I7a40509a063e19a24858e9ab021f5c0b1f900c34
parents ef7f80f1 0c1eb6a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -249,6 +249,9 @@ public class ColorScheme(@ColorInt seed: Int, val darkTheme: Boolean) {
                val population = populationByColor[entry.key]!!
                val cam = camByColor[entry.key]!!
                val hue = cam.hue.roundToInt() % 360
                if (cam.chroma <= MIN_CHROMA) {
                    continue
                }
                huePopulation[hue] = huePopulation[hue] + population
            }