From 7100caa75ebebed54ad9690e8695155ea7708165 Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Fri, 19 Jun 2020 14:26:02 -0700 Subject: [PATCH] Let biometric prompt button text wrap to new line Fixes an issue where the buttons on the biometric prompt would fail to wrap to a second line in order to accommodate long label text. This caused the buttons to be truncated in some languages (e.g. Russian). Test: On a Pixel 4 XL: 1. Ensure a lock pattern is set and Face Unlock is enabled 2. Set the system language to Russian (Russia) 3. Open wifi settings and select a saved network 4. Tap on the "Share" button for this network 5. Wait for Face Unlock to time out for the prompt 6. Rotate the device between portrait and landscape Fixes: 158240727 Change-Id: I51da6b124ffcd867322ee699e3908847e1df7ecd --- .../res/layout/auth_biometric_contents.xml | 34 +++++++++++-------- packages/SystemUI/res/values-land/dimens.xml | 3 ++ packages/SystemUI/res/values/dimens.xml | 2 ++ 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/packages/SystemUI/res/layout/auth_biometric_contents.xml b/packages/SystemUI/res/layout/auth_biometric_contents.xml index 6b61046e0f6c0..a87c7b3fa9275 100644 --- a/packages/SystemUI/res/layout/auth_biometric_contents.xml +++ b/packages/SystemUI/res/layout/auth_biometric_contents.xml @@ -50,8 +50,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingHorizontal="24dp" - android:paddingTop="16dp" - android:paddingBottom="24dp" + android:paddingVertical="12dp" android:textSize="12sp" android:gravity="center_horizontal" android:accessibilityLiveRegion="polite" @@ -60,22 +59,23 @@ + android:orientation="horizontal" + android:paddingTop="16dp">