From 7cfa9ddc6cd1731913b5a7d104ea0094df853144 Mon Sep 17 00:00:00 2001 From: Robert Snoeberger Date: Mon, 6 May 2019 17:41:36 -0400 Subject: [PATCH] Prevent clipping clock during shrink, bold transition Bug: 130223602 Test: visual - look at transition with music playing Change-Id: I3bfd9f9c51bde3f827888e4eec43360db3f1d266 --- .../layout/keyguard_clock_switch.xml | 6 +- .../SystemUI/res-keyguard/values/styles.xml | 8 +- .../android/keyguard/KeyguardClockSwitch.java | 237 +++++++++++------- 3 files changed, 153 insertions(+), 98 deletions(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index 3118ab77bf6f8..1967dd1013f94 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -48,16 +48,16 @@ android:id="@+id/default_clock_view_bold" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" + android:layout_gravity="bottom|center_horizontal" android:gravity="center_horizontal" android:letterSpacing="0.03" android:textColor="?attr/wallpaperTextColor" android:singleLine="true" - style="@style/widget_big_bold" + style="@style/widget_title_bold" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" android:elegantTextHeight="false" - android:visibility="gone" + android:visibility="invisible" /> @*android:string/config_headlineFontFeatureSettings none -