From 8f103668a37c37d67cdfea4c90b93bc6fef8859b Mon Sep 17 00:00:00 2001 From: Alejandro Nijamkin Date: Fri, 12 May 2023 14:04:25 -0700 Subject: Allow long-press lockscreen popup to be wider. To reduce the chances of needing to truncate the text in the lockscreen long-press popup button, places the button z-order "above" the left and right lockscreen shortcuts. Please see screenshots at b/279675855#comment16 Fix: 279675855 Test: manually verified that the popup shows properly, in the middle, between the two lockscreen shortcuts when the font size setting is set to smallest, default, and largest, on a Pixel 7. Also made sure that clicking the popup still goes to the lockscreen customization screen, that the lockscreen shortcuts can still be interacted with, etc. Change-Id: Ia95a9e11ea5be70960fc45a26271f15c0623b8ad --- .../SystemUI/res/layout/keyguard_bottom_area.xml | 81 ++++++++++------------ 1 file changed, 35 insertions(+), 46 deletions(-) diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml index e9acf3fa10c8..a3a7135dabad 100644 --- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml +++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml @@ -59,55 +59,44 @@ - - - - - - - + android:scaleType="fitCenter" + android:padding="@dimen/keyguard_affordance_fixed_padding" + android:tint="?android:attr/textColorPrimary" + android:background="@drawable/keyguard_bottom_affordance_bg" + android:foreground="@drawable/keyguard_bottom_affordance_selected_border" + android:visibility="invisible" /> - + - +