From c942bbac259e33c9815e0ff4ffbc3bd5c176c031 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 17 Apr 2024 17:46:42 +0930 Subject: [PATCH] Fix margins --- .../java/org/thoughtcrime/securesms/SessionDialogBuilder.kt | 1 - app/src/main/res/layout/dialog_clear_all_data.xml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt b/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt index a9b5476aa5..598977392b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/SessionDialogBuilder.kt @@ -131,7 +131,6 @@ class SessionDialogBuilder(val context: Context) { setText(text) contentDescription = resources.getString(contentDescriptionRes) layoutParams = LinearLayout.LayoutParams(WRAP_CONTENT, dp60, 1f) - .apply { setMargins(dp20) } setOnClickListener { listener.invoke() if (dismiss) dismiss() diff --git a/app/src/main/res/layout/dialog_clear_all_data.xml b/app/src/main/res/layout/dialog_clear_all_data.xml index 94d4828e21..4ef5c40e8e 100644 --- a/app/src/main/res/layout/dialog_clear_all_data.xml +++ b/app/src/main/res/layout/dialog_clear_all_data.xml @@ -20,6 +20,8 @@ android:id="@+id/dialogDescriptionText" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginStart="20dp" + android:layout_marginEnd="20dp" android:layout_marginTop="@dimen/large_spacing" android:text="@string/dialog_clear_all_data_message" android:textAlignment="center"