From 600d023892718409b6ee8333418f14ccd2fbc3d0 Mon Sep 17 00:00:00 2001 From: Edgar Wang Date: Tue, 18 May 2021 15:46:52 +0800 Subject: [PATCH] Make preference title align after icon - Running service should use app preference layout. - RestrictedDropdownPreference should use preference layout. - Tweek Storage item icon padding - Wifi calling should use Prefernce - In Open by default page, if there is no vierfied link, we should hide the checkbox. Bug: 186069482 Test: manual Change-Id: Icc186ad79fc2bcf7ecd9c1ebba747bdad2d9b9ad Merged-In: Icc186ad79fc2bcf7ecd9c1ebba747bdad2d9b9ad --- res/layout/restricted_preference_dropdown.xml | 2 +- res/layout/running_processes_item.xml | 2 +- res/layout/storage_item.xml | 17 +---------------- res/values/styles_preference.xml | 1 + res/xml/mobile_network_settings.xml | 4 ++-- .../intentpicker/VerifiedLinksPreference.java | 2 +- 6 files changed, 7 insertions(+), 21 deletions(-) diff --git a/res/layout/restricted_preference_dropdown.xml b/res/layout/restricted_preference_dropdown.xml index 86053bf1eac..8930e24bb28 100644 --- a/res/layout/restricted_preference_dropdown.xml +++ b/res/layout/restricted_preference_dropdown.xml @@ -26,6 +26,6 @@ android:visibility="invisible" android:layout_marginStart="@dimen/preference_no_icon_padding_start"/> - + \ No newline at end of file diff --git a/res/layout/running_processes_item.xml b/res/layout/running_processes_item.xml index 2bca90e20a4..6b8547a0dd2 100644 --- a/res/layout/running_processes_item.xml +++ b/res/layout/running_processes_item.xml @@ -31,5 +31,5 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_toStartOf="@id/widget_summary" - layout="@layout/preference_material"/> + layout="@layout/preference_app"/> \ No newline at end of file diff --git a/res/layout/storage_item.xml b/res/layout/storage_item.xml index 6de2d510b17..40796f7b373 100644 --- a/res/layout/storage_item.xml +++ b/res/layout/storage_item.xml @@ -35,22 +35,7 @@ android:clipToPadding="false" android:paddingStart="?android:attr/listPreferredItemPaddingStart"> - - - + @android:string/ok @android:string/cancel + @bool/settingslib_config_icon_space_reserved