From 9e3c21bae54a894bd6305e7c728e67d800782e23 Mon Sep 17 00:00:00 2001 From: Joshua McCloskey Date: Thu, 1 Dec 2022 17:34:21 +0000 Subject: Fixed contrast with sfps overlay. Tested various different themes 1. Choose a color in settings > wallpapers > basic colors 2. Go through enrollment 3. Verify that light/dark theme have appropriate contrast. Test: Manually verified the contrast works for light/dark themes and various different basic color styles. Fixes: 243008680 Change-Id: I63900a8df21a3fe0f02e5da0db6e3b75520fce12 --- .../SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt index 1c3dd451a1d3..e09e65e1b479 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/SideFpsController.kt @@ -370,11 +370,15 @@ private fun WindowInsets.hasBigNavigationBar(): Boolean = private fun LottieAnimationView.addOverlayDynamicColor(context: Context) { fun update() { val c = context.getColor(R.color.biometric_dialog_accent) + val chevronFill = context.getColor(R.color.sfps_chevron_fill) for (key in listOf(".blue600", ".blue400")) { addValueCallback(KeyPath(key, "**"), LottieProperty.COLOR_FILTER) { PorterDuffColorFilter(c, PorterDuff.Mode.SRC_ATOP) } } + addValueCallback(KeyPath(".black", "**"), LottieProperty.COLOR_FILTER) { + PorterDuffColorFilter(chevronFill, PorterDuff.Mode.SRC_ATOP) + } } if (composition != null) { -- cgit v1.2.3-59-g8ed1b