Merge "If device isn't on the keyguard, always use sfps blue colors" into udc-dev am: ee3ec01f81

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

Change-Id: Ib4219e26b5d6d6c9176d6b8ab33747beea013d0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Beverly Tai
2023-05-15 20:46:12 +00:00
committed by Automerger Merge Worker
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -20,6 +20,7 @@ import android.animation.AnimatorListenerAdapter
import android.app.ActivityTaskManager
import android.content.Context
import android.content.res.Configuration
import android.graphics.Color
import android.graphics.PixelFormat
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
@@ -459,7 +460,12 @@ private fun LottieAnimationView.addOverlayDynamicColor(
addValueCallback(KeyPath(".black", "**"), LottieProperty.COLOR_FILTER) {
PorterDuffColorFilter(chevronFill, PorterDuff.Mode.SRC_ATOP)
}
} else if (isDarkMode(context)) {
} else {
if (!isDarkMode(context)) {
addValueCallback(KeyPath(".black", "**"), LottieProperty.COLOR_FILTER) {
PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP)
}
}
for (key in listOf(".blue600", ".blue400")) {
addValueCallback(KeyPath(key, "**"), LottieProperty.COLOR_FILTER) {
PorterDuffColorFilter(