summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
diff options
context:
space:
mode:
authorMatt Pietal <mpietal@google.com>2021-06-04 15:11:26 -0400
committerMatt Pietal <mpietal@google.com>2021-06-04 15:42:50 -0400
commitdd42f85829a0baee975b2a7b1495aa5bf40c62bc (patch)
tree663712256fe4d8677e8dc171c5b9f8a781288f2e /packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
parent73eb2771f80179a257b70551da4bf792f9b5a1a3 (diff)
Update time format
When notified of a change in format or a change in user, issue a call to update the time for both large/small clock. Fixes: 189900109 Test: atest KeyguardStatusViewControllerTest Change-Id: I5ccb55e74d26715fc5358bf9dcd95ff9257395bd
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
index e8cc5c8a49f3..e4cabcb94ebe 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java
@@ -287,6 +287,11 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
}
@Override
+ public void onTimeFormatChanged(String timeFormat) {
+ mKeyguardClockSwitchController.refreshFormat();
+ }
+
+ @Override
public void onTimeZoneChanged(TimeZone timeZone) {
mKeyguardClockSwitchController.updateTimeZone(timeZone);
}
@@ -313,6 +318,7 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV
@Override
public void onUserSwitchComplete(int userId) {
+ mKeyguardClockSwitchController.refreshFormat();
mView.updateOwnerInfo();
mView.updateLogoutView(shouldShowLogout());
}