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
This commit is contained in:
James O'Leary
2022-05-05 16:46:11 +00:00
parent 7732fd2401
commit 0c38e03bb0

View File

@@ -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)
}
}