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

Commit 0c38e03b authored by James O'Leary's avatar James O'Leary
Browse files

Fix color scheme rotation

The first number in a Pair instance, the hue range to check against,
was being used as the rotation value. The second number in the Pair
instance should have been used.

Bug: 213314628
Test: Manual inspection at runtime
Change-Id: I9002522853f8a6cc6d38537f14fed04e256aa340
parent 7732fd24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ internal interface Hue {
            val previousHue = hueAndRotations[previousIndex].first
            if (ColorScheme.angleIsBetween(sourceHue, thisHue, previousHue)) {
                return ColorScheme.wrapDegreesDouble(sourceHue.toDouble() +
                        hueAndRotations[previousIndex].first)
                        hueAndRotations[previousIndex].second)
            }
        }