From ace3a78792b9bde7a5d82271e7735de501e69a71 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 14 Apr 2022 16:11:35 -0400 Subject: [PATCH] Nest SystemUI alert dialogs in NestedScrollLayout That way, they can be scrolled if they don't fit the screen (in particular in landscape). It's important to nest the whole layout and not parts of it, so as not to modify the expected layout from AlertDialogLayout. Test: manual Fixes: 222683712 Change-Id: I5b23acaee70b1a5b5a14e845bd0de5ac17b761d1 --- .../res/layout/alert_dialog_systemui.xml | 141 +++++++++--------- 1 file changed, 73 insertions(+), 68 deletions(-) diff --git a/packages/SystemUI/res/layout/alert_dialog_systemui.xml b/packages/SystemUI/res/layout/alert_dialog_systemui.xml index ca8fadd9c7dae..528f603c6a83a 100644 --- a/packages/SystemUI/res/layout/alert_dialog_systemui.xml +++ b/packages/SystemUI/res/layout/alert_dialog_systemui.xml @@ -15,83 +15,88 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - + android:layout_height="wrap_content"> - - - - - - - - - - - - - - - - - + - - - - - + android:minHeight="48dp" + android:paddingStart="@dimen/dialog_side_padding" + android:paddingEnd="@dimen/dialog_side_padding" + > - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file