From f88ffb09fd158f3b3cbbf25361bc6a474eeeea27 Mon Sep 17 00:00:00 2001 From: SongFerngWang Date: Tue, 25 Jan 2022 14:55:42 +0800 Subject: [PATCH] The list does not follow the UX dialog design doc in alert dialog. Please refer the comment#1 at bug and there are change below - the divider is 4dp - the item's radius is different in the list. Bug: 216233391 Test: manual test: check the UI make RunSettingsRoboTests ROBOTEST_FILTER=SimListDialogFragmentTest (PASS) Change-Id: I758d60202fcf477aeb49014e60b949e7ad08c082 Merged-In: I758d60202fcf477aeb49014e60b949e7ad08c082 --- res/layout/select_account_list_item.xml | 1 - ...em_multiple_enabled_profiles_supported.xml | 1 - ...og_multiple_enabled_profiles_supported.xml | 15 ++++--- res/values-night/themes.xml | 6 --- .../telephony/ConfirmDialogFragment.java | 15 ++++--- .../SelectSpecificDataSimDialogFragment.java | 14 +------ .../settings/sim/SimListDialogFragment.java | 39 ++++++++++++------- .../sim/SimListDialogFragmentTest.java | 4 +- 8 files changed, 50 insertions(+), 45 deletions(-) diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml index 2f71338448d..dbc31be801d 100644 --- a/res/layout/select_account_list_item.xml +++ b/res/layout/select_account_list_item.xml @@ -20,7 +20,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/listPreferredItemHeightSmall" - android:background="@drawable/sim_confirm_dialog_rounded_bg" android:gravity="center"> diff --git a/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml b/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml index 610bf3de2e8..081efb31c0a 100644 --- a/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml +++ b/res/layout/sim_confirm_dialog_multiple_enabled_profiles_supported.xml @@ -26,15 +26,19 @@ android:paddingEnd="24dp" android:paddingTop="16dp" android:paddingStart="24dp" + android:paddingBottom="32dp" android:gravity="center" - android:textAppearance="@style/TextAppearance.DialogMessage"/> + android:textAppearance="@style/TextAppearance.DialogMessage" + android:visibility="gone"/> + android:layout_height="wrap_content" + android:visibility="gone"/> + android:baselineAligned="true" + android:visibility="gone"> @*android:color/surface_dark - -