From 8c5bcaa37495e1484dd83f5f389a2c54be84dc5d Mon Sep 17 00:00:00 2001 From: Jason Chang Date: Wed, 14 Dec 2022 10:59:00 +0000 Subject: [PATCH] (2/2) Fix settings face enrollment UI layout problem To extract face_enroll_education.xml layout dimensions to dimens.xml 1. Fix settings face enrollment UI truncate problem 2. Fix It's hard to tap "setup for limited vision or head motion" button Bug: 260653042 Bug: 263065347 Test: manually go to Settings > Security & privacy > Device lock > Face & Fingerprint Unlock > Face Unlock, then start enroll Face, In second stage ("How to set up Face Unlock" page ), check the layout and lottie animation do not truncate. Test: m -j SettingsGoogleRoboTests RunSettingsGoogleRoboTests Test: m RunSettingsRoboTests ROBOTEST_FILTER= "com.android.settings.biometrics.face.FaceEnrollEducationTest" Test: m RunSettingsRoboTests ROBOTEST_FILTER= "com.android.settings.biometrics.face.FaceEnrollIntroductionTest" Change-Id: I7d7bad8b91dd505772e8f2b28cb4b872a4750cb4 --- res/drawable/face_enroll_icon_large.xml | 4 ++-- res/layout/face_enroll_education.xml | 12 ++++++++---- res/values/dimens.xml | 12 ++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/res/drawable/face_enroll_icon_large.xml b/res/drawable/face_enroll_icon_large.xml index 578a4a9b741..6d9b155e0ca 100644 --- a/res/drawable/face_enroll_icon_large.xml +++ b/res/drawable/face_enroll_icon_large.xml @@ -16,8 +16,8 @@ --> diff --git a/res/layout/face_enroll_education.xml b/res/layout/face_enroll_education.xml index fec6d538c7e..908dae4f7f1 100644 --- a/res/layout/face_enroll_education.xml +++ b/res/layout/face_enroll_education.xml @@ -39,7 +39,7 @@ + android:layout_marginTop="@dimen/face_enroll_education_lottie_frame_margin_top"> @@ -84,7 +85,7 @@ + android:layout_marginTop="@dimen/limited_vision_button_frame_margin_top">