From 844bbfac2a5ac8ec597f4dc43be226009b918785 Mon Sep 17 00:00:00 2001 From: Eghosa Ewansiha-Vlachavas Date: Fri, 21 Apr 2023 15:45:30 +0000 Subject: [PATCH] Increase touch region for checkbox in letterbox restart dialog Make the touch region to toggle the checkbox state a minimum of 48x48dp around the checkbox itself as well as the text and parent container associated with the checkbox. Thus making the new touch region 48dp high and the width of the parent container Fixes: 278589504 Test: atest WMShellUnitTests:LetterboxEduDialogLayoutTest Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest Test: atest WMShellUnitTests:CompatUIControllerTest Change-Id: Ia124897f92717eea4ddef3b2431a43adedde0f8c --- .../Shell/res/layout/letterbox_restart_dialog_layout.xml | 4 +++- .../com/android/wm/shell/compatui/RestartDialogLayout.java | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/res/layout/letterbox_restart_dialog_layout.xml b/libs/WindowManager/Shell/res/layout/letterbox_restart_dialog_layout.xml index 5aff4159e135a..7f1aac3551b66 100644 --- a/libs/WindowManager/Shell/res/layout/letterbox_restart_dialog_layout.xml +++ b/libs/WindowManager/Shell/res/layout/letterbox_restart_dialog_layout.xml @@ -73,11 +73,13 @@ android:textAlignment="center"/> + android:layout_marginVertical="18dp"> {}); + checkboxContainer.setOnClickListener(view -> checkbox.performClick()); } }