From a76c5b2bed5d474c6b51a91da6c9d8f8b1e54acf Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Tue, 13 Apr 2021 17:08:11 -0400 Subject: Smartspace - Allow primary card colors to be updated This is largely for both AOD and lockscreen, while may have different colors than launcher. Particularly for AOD, we need to transition to a WHITE color. Set a primary text color, with expectations that a secondary color will later be set in order to support cards with various background colors. Fixes: 185211979 Test: manual, change to AOD <-> LS Change-Id: I36fb8e5cfcbac1ec999b2b9df08f42d47507990f --- .../keyguard/KeyguardClockSwitchController.java | 57 +++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index cb825c043642..f89e365bc995 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -26,14 +26,18 @@ import android.app.smartspace.SmartspaceSession; import android.content.ContentResolver; import android.content.Context; import android.content.res.Resources; +import android.graphics.Color; import android.text.TextUtils; import android.text.format.DateFormat; import android.view.View; import android.widget.FrameLayout; import android.widget.RelativeLayout; +import com.android.internal.annotations.VisibleForTesting; import com.android.internal.colorextraction.ColorExtractor; +import com.android.internal.graphics.ColorUtils; import com.android.keyguard.clock.ClockManager; +import com.android.settingslib.Utils; import com.android.systemui.R; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.colorextraction.SysuiColorExtractor; @@ -50,6 +54,7 @@ import com.android.systemui.statusbar.notification.stack.AnimationProperties; import com.android.systemui.statusbar.phone.NotificationIconAreaController; import com.android.systemui.statusbar.phone.NotificationIconContainer; import com.android.systemui.statusbar.policy.BatteryController; +import com.android.systemui.statusbar.policy.ConfigurationController; import com.android.systemui.util.ViewController; import java.util.Locale; @@ -87,6 +92,10 @@ public class KeyguardClockSwitchController extends ViewController() { @@ -186,6 +220,7 @@ public class KeyguardClockSwitchController extends ViewController