summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sherry Zhou <yuandizhou@google.com> 2023-10-12 17:18:28 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-10-12 17:18:28 +0000
commitbe21face6e85a65e5a4cafc062fa95ae3b29b3df (patch)
treeac6b35102605ab27d7311a164af74cb90a31ecd7
parent5b55f9da807419ef0050764ce52f4f5cd71ea661 (diff)
parent245ae91405ce8e05ac5ba93a9fb8e557a392bc73 (diff)
Merge "Fix metro clock changes to wrong clock after previewing while using shared lottie assets" into main
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
index f6a0563ebf94..9bddcd79ca49 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
@@ -22,10 +22,10 @@ import androidx.core.content.res.ResourcesCompat;
import com.android.app.animation.Interpolators;
import com.android.keyguard.dagger.KeyguardStatusViewScope;
-import com.android.systemui.res.R;
import com.android.systemui.log.LogBuffer;
import com.android.systemui.log.core.LogLevel;
import com.android.systemui.plugins.ClockController;
+import com.android.systemui.res.R;
import com.android.systemui.shared.clocks.DefaultClockController;
import java.io.PrintWriter;
@@ -452,6 +452,10 @@ public class KeyguardClockSwitch extends RelativeLayout {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
super.onLayout(changed, l, t, r, b);
+ // TODO: b/305022530
+ if (mClock.getConfig().getId().equals("DIGITAL_CLOCK_METRO")) {
+ mClock.getEvents().onColorPaletteChanged(mContext.getResources());
+ }
if (changed) {
post(() -> updateClockTargetRegions());