From 230dcab138f069b89215161ce368b124f8bbe8ee Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 1 Dec 2022 12:17:21 -0800 Subject: [PATCH] [Bouncer] Fix some responsiveness issues. Found a couple of responsive issues and fixing them. 1. Numpad key digits had a min size of 32 sp. This would look off when we maximize the display size and go into half folded on a foldable device. I set the text to autosize with a max size of 32sp. 2. Userswitcher anchor was squished in password security method on tablet. I removed some clipping in order to fix this. Fixes: 261062809 Test: Open password view with max display and normal display sizes for tablet. Test: Half fold on foldable for pin view in bouncer. Change-Id: I78fbbb231c35118bef65660b7ca5562d77dad16b --- .../res-keyguard/layout/keyguard_bouncer_user_switcher.xml | 2 -- packages/SystemUI/res-keyguard/layout/keyguard_num_pad_key.xml | 2 ++ .../src/com/android/keyguard/KeyguardSecurityContainer.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_bouncer_user_switcher.xml b/packages/SystemUI/res-keyguard/layout/keyguard_bouncer_user_switcher.xml index 898935fc7e993..2cac9c706fe90 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_bouncer_user_switcher.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_bouncer_user_switcher.xml @@ -21,8 +21,6 @@ android:id="@+id/keyguard_bouncer_user_switcher" android:layout_width="match_parent" android:layout_height="wrap_content" - android:clipChildren="false" - android:clipToPadding="false" android:orientation="vertical" android:gravity="center" android:importantForAccessibility="yes">