summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Julia Tuttle <juliatuttle@google.com> 2024-02-26 15:48:23 -0500
committer Julia Tuttle <juliatuttle@google.com> 2024-03-04 21:24:27 +0000
commitf47606f122049bd73ce39b1e449cbda794a74395 (patch)
tree3f4e772f3ba9495237bd9aed2a5924d3c2f0a5fc
parentb693882e1cf8c25040f57c8a4876fbd52366fb8c (diff)
ChannelEditorDialog: use @dimen/large_dialog_width
ChannelEditorDialog (which uses notif_half_shelf as the root layout) was displaying with layout_width wrap_content, which meant the dialog was snugly wrapped around the app icon, name, and global notification toggle. We already have a convenient resource, @dimen/large_dialog_width, for dialogs like this, so use it! Bug: 309133675 Flag: NA Test: manual Change-Id: Ic3871b721b9ecf37abc6d92b0378003806f20ff2
-rw-r--r--packages/SystemUI/res/layout/notif_half_shelf.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/res/layout/notif_half_shelf.xml b/packages/SystemUI/res/layout/notif_half_shelf.xml
index 68c8dd96d188..d8d298573d04 100644
--- a/packages/SystemUI/res/layout/notif_half_shelf.xml
+++ b/packages/SystemUI/res/layout/notif_half_shelf.xml
@@ -19,11 +19,11 @@
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:id="@+id/half_shelf_dialog"
android:orientation="vertical"
- android:layout_width="wrap_content"
+ android:layout_width="@dimen/large_dialog_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
- android:paddingStart="4dp"
- android:paddingEnd="4dp">
+ android:paddingLeft="@dimen/dialog_side_padding"
+ android:paddingRight="@dimen/dialog_side_padding">
<LinearLayout
android:id="@+id/half_shelf"