From df6e9d0d7082d69df6a9c1b5165cf6bdf3b8f5e0 Mon Sep 17 00:00:00 2001 From: Joanne Chung Date: Tue, 24 May 2022 11:08:52 +0800 Subject: [PATCH] Use autofill specific dialog background Autofill bottomsheet dialog would like to use the material 3 design. So we change the background color but the file is used by other modules, we should not change it. So we create a seprate background for autofill dialog background. Bug: 233657077 Test: manual. Change-Id: I9968c864ae9de78faab4dc8e6427c960c36584d6 --- .../autofill_bottomsheet_background.xml | 22 +++++++++++++++++++ .../res/drawable/bottomsheet_background.xml | 6 ++--- core/res/res/layout/autofill_fill_dialog.xml | 2 +- core/res/res/layout/autofill_save.xml | 2 +- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 core/res/res/drawable/autofill_bottomsheet_background.xml diff --git a/core/res/res/drawable/autofill_bottomsheet_background.xml b/core/res/res/drawable/autofill_bottomsheet_background.xml new file mode 100644 index 0000000000000..0bbc009bd3c17 --- /dev/null +++ b/core/res/res/drawable/autofill_bottomsheet_background.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/core/res/res/drawable/bottomsheet_background.xml b/core/res/res/drawable/bottomsheet_background.xml index 9469e0a672076..00d53004c9dca 100644 --- a/core/res/res/drawable/bottomsheet_background.xml +++ b/core/res/res/drawable/bottomsheet_background.xml @@ -16,7 +16,7 @@ - + android:topLeftRadius="@dimen/config_bottomDialogCornerRadius" + android:topRightRadius="@dimen/config_bottomDialogCornerRadius"/> + diff --git a/core/res/res/layout/autofill_fill_dialog.xml b/core/res/res/layout/autofill_fill_dialog.xml index e638764840738..e2ef1942e4bd2 100644 --- a/core/res/res/layout/autofill_fill_dialog.xml +++ b/core/res/res/layout/autofill_fill_dialog.xml @@ -20,7 +20,7 @@ android:id="@+id/autofill_dialog_picker" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="@drawable/bottomsheet_background" + android:background="@drawable/autofill_bottomsheet_background" android:orientation="vertical">