From 0c38e03bb0be72367c1e6f59ffdc3ea11f0ec3f7 Mon Sep 17 00:00:00 2001 From: James O'Leary Date: Thu, 5 May 2022 16:46:11 +0000 Subject: [PATCH] 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 --- .../monet/src/com/android/systemui/monet/ColorScheme.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt b/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt index b4f496b3e21ba..59a8551488e0f 100644 --- a/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt +++ b/packages/SystemUI/monet/src/com/android/systemui/monet/ColorScheme.kt @@ -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) } }