Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd7755a authored by Eghosa Ewansiha-Vlachavas's avatar Eghosa Ewansiha-Vlachavas Committed by Automerger Merge Worker
Browse files

Merge "Increase touch region for checkbox in letterbox restart dialog" into...

Merge "Increase touch region for checkbox in letterbox restart dialog" into udc-dev am: 688838f6 am: 10254a25

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22787397



Change-Id: I007a33a14722eb4100a892aa072a9ca7150bd351
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a2c9daf2 10254a25
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -73,11 +73,13 @@
                    android:textAlignment="center"/>

                <LinearLayout
                    android:id="@+id/letterbox_restart_dialog_checkbox_container"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingVertical="14dp"
                    android:orientation="horizontal"
                    android:layout_gravity="center_vertical"
                    android:layout_marginVertical="32dp">
                    android:layout_marginVertical="18dp">

                    <CheckBox
                        android:id="@+id/letterbox_restart_dialog_checkbox"
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,9 @@ public class RestartDialogLayout extends ConstraintLayout implements DialogConta
    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        final View checkboxContainer = findViewById(
                R.id.letterbox_restart_dialog_checkbox_container);
        final CheckBox checkbox = findViewById(R.id.letterbox_restart_dialog_checkbox);
        mDialogContainer = findViewById(R.id.letterbox_restart_dialog_container);
        mDialogTitle = findViewById(R.id.letterbox_restart_dialog_title);
        mBackgroundDim = getBackground().mutate();
@@ -103,5 +106,6 @@ public class RestartDialogLayout extends ConstraintLayout implements DialogConta
        // We add a no-op on-click listener to the dialog container so that clicks on it won't
        // propagate to the listener of the layout (which represents the background dim).
        mDialogContainer.setOnClickListener(view -> {});
        checkboxContainer.setOnClickListener(view -> checkbox.performClick());
    }
}