From 0ff4175538137a33b822326f36be58bcd7df4e52 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 1 Nov 2022 15:00:21 -0300 Subject: [PATCH] Update design for the donation thanks dialog. --- ...ForYourSupportBottomSheetDialogFragment.kt | 2 - ...r_support_bottom_sheet_dialog_fragment.xml | 44 +++++++------------ app/src/main/res/values/strings.xml | 2 +- 3 files changed, 17 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/thanks/ThanksForYourSupportBottomSheetDialogFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/thanks/ThanksForYourSupportBottomSheetDialogFragment.kt index be293a0811..13d53d1605 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/thanks/ThanksForYourSupportBottomSheetDialogFragment.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/thanks/ThanksForYourSupportBottomSheetDialogFragment.kt @@ -51,7 +51,6 @@ class ThanksForYourSupportBottomSheetDialogFragment : FixedRoundedCornerBottomSh val badgeView: BadgeImageView = view.findViewById(R.id.thanks_bottom_sheet_badge) val lottie: LottieAnimationView = view.findViewById(R.id.thanks_bottom_sheet_lottie) - val badgeName: TextView = view.findViewById(R.id.thanks_bottom_sheet_badge_name) val done: MaterialButton = view.findViewById(R.id.thanks_bottom_sheet_done) val controlText: TextView = view.findViewById(R.id.thanks_bottom_sheet_control_text) val controlNote: View = view.findViewById(R.id.thanks_bottom_sheet_featured_note) @@ -63,7 +62,6 @@ class ThanksForYourSupportBottomSheetDialogFragment : FixedRoundedCornerBottomSh val args = ThanksForYourSupportBottomSheetDialogFragmentArgs.fromBundle(requireArguments()) badgeView.setBadge(args.badge) - badgeName.text = args.badge.name if (args.badge.isBoost()) { if (Recipient.self().badges.any { !it.isBoost() }) { diff --git a/app/src/main/res/layout/thanks_for_your_support_bottom_sheet_dialog_fragment.xml b/app/src/main/res/layout/thanks_for_your_support_bottom_sheet_dialog_fragment.xml index 592a48a82d..1d2b8b291d 100644 --- a/app/src/main/res/layout/thanks_for_your_support_bottom_sheet_dialog_fragment.xml +++ b/app/src/main/res/layout/thanks_for_your_support_bottom_sheet_dialog_fragment.xml @@ -1,11 +1,11 @@ + android:orientation="vertical" + tools:viewBindingIgnore="true"> + app:layout_constraintTop_toBottomOf="@id/thanks_bottom_sheet_badge" /> - - + app:layout_constraintTop_toBottomOf="@id/thanks_bottom_sheet_subhead" /> @@ -148,14 +136,14 @@ android:layout_width="0dp" android:layout_height="48sp" android:layout_marginStart="@dimen/dsl_settings_gutter" - android:layout_marginTop="24dp" + android:layout_marginTop="48dp" android:layout_marginEnd="@dimen/dsl_settings_gutter" android:layout_marginBottom="16dp" - android:text="@string/SubscribeThanksForYourSupportBottomSheetDialogFragment__done" + android:text="@string/SubscribeThanksForYourSupportBottomSheetDialogFragment__continue" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/thanks_bottom_sheet_featured_note" - app:layout_goneMarginTop="36dp" /> + app:layout_goneMarginTop="72dp" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5203664a7b..39156b84e6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4505,7 +4505,7 @@ become a monthly Sustainer. Display on Profile Make featured badge - Done + Continue When you have more than one badge, you can choose one to feature for others to see on your profile. Get badges for your profile by supporting Signal.