From 05296e3d9bb3ca5f30893360c9a71b3426b2bf61 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Wed, 11 Oct 2023 16:25:47 -0300 Subject: [PATCH] Add proper text for pending sheet. --- .../app/subscription/DonationPendingBottomSheet.kt | 9 +++++++-- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/DonationPendingBottomSheet.kt b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/DonationPendingBottomSheet.kt index 0210661fd2..c5aa49ea79 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/DonationPendingBottomSheet.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/DonationPendingBottomSheet.kt @@ -116,9 +116,14 @@ private fun DonationPendingBottomSheetContent( modifier = Modifier.padding(bottom = 8.dp) ) - // TODO [sepa] -- Need proper copy here for one-time donations. + val textResource = if (badge.isSubscription()) { + R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending + } else { + R.string.DonationPendingBottomSheet__your_one_time_donation_is_pending + } + Text( - text = stringResource(id = R.string.DonationPendingBottomSheet__your_monthly_donation_is_pending, badge.name), + text = stringResource(id = textResource, badge.name), textAlign = TextAlign.Center, color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(bottom = 20.dp) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 50d9961408..16c334df86 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -5870,6 +5870,8 @@ Donation pending Your monthly donation is pending. You’ll be able to display the %1$s badge on your profile when your donation is received. + + Your one-time donation is pending. You’ll be able to display the %1$s badge on your profile when your donation is received. Bank transfers usually take 1 business day to process. %1$s