diff --git a/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java b/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java index 6c6c9270bc84a..3058d94661210 100644 --- a/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java +++ b/packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java @@ -126,6 +126,13 @@ public interface ClockPlugin extends Plugin { */ default void onTimeZoneChanged(TimeZone timeZone) {} + /** + * Notifies that the time format has changed. + * + * @param timeFormat "12" for 12-hour format, "24" for 24-hour format + */ + default void onTimeFormatChanged(String timeFormat) {} + /** * Indicates whether the keyguard status area (date) should be shown below * the clock. diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index c82bda6620bd7..19f82480284e0 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -73,13 +73,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right" - android:textSize="80dp" + android:textSize="100dp" android:letterSpacing="0.02" android:lineSpacingMultiplier=".8" android:includeFontPadding="false" android:fontFamily="@font/clock" android:typeface="monospace" android:elegantTextHeight="false" + dozeWeight="200" + lockScreenWeight="300" /> + + + + + diff --git a/packages/SystemUI/res-keyguard/values/styles.xml b/packages/SystemUI/res-keyguard/values/styles.xml index bc48e8fe3eea2..71a1cc292ec90 100644 --- a/packages/SystemUI/res-keyguard/values/styles.xml +++ b/packages/SystemUI/res-keyguard/values/styles.xml @@ -137,5 +137,4 @@ @color/keyguard_shadow_color ?attr/shadowRadius - diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index 3157a5a8fc5b5..7c6a27446c786 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -24,6 +24,8 @@ import com.android.settingslib.Utils; import com.android.systemui.plugins.statusbar.StatusBarStateController; import com.android.systemui.util.ViewController; +import java.util.TimeZone; + /** * Controls the color of a GradientTextClock. */ @@ -62,12 +64,26 @@ public class AnimatableClockController extends ViewController