From d5faac34083e8c53fcedc0ea7c01d18ad55ad832 Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier Date: Thu, 27 Oct 2022 21:05:32 +0000 Subject: [PATCH] Initialize the small frame in KeyguardClockSwitch as invisible The KeyguardClockSwitch starts with the small clock frame as visible, which allows the clock to be seen in a bad state if it's bound before switchToClock is called with the appropriate clock size. Fixes: 247608708 Test: Manually checked large & small clock user switch Change-Id: I0885d19e297ff5f881271ed0347e9699b3494928 --- .../SystemUI/res-keyguard/layout/keyguard_clock_switch.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index d64587dcf362f..c297149573181 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -31,7 +31,8 @@ android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentTop="true" - android:paddingStart="@dimen/clock_padding_start" /> + android:paddingStart="@dimen/clock_padding_start" + android:visibility="invisible" />