From 02ecc19112b192a0d739ab75ad2e53a1e1c20936 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Thu, 14 Nov 2024 10:54:44 -0400 Subject: [PATCH] Add backup specific strings for token redemption error. --- .../app/subscription/errors/DonationErrorParams.kt | 11 +++++++++-- app/src/main/res/values/strings.xml | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/errors/DonationErrorParams.kt b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/errors/DonationErrorParams.kt index 8d24d5da7c..4208ac7d30 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/errors/DonationErrorParams.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/errors/DonationErrorParams.kt @@ -98,9 +98,16 @@ class DonationErrorParams private constructor( negativeAction = null ) + InAppPaymentType.RECURRING_BACKUP -> DonationErrorParams( + title = R.string.DonationsError__something_went_wrong, + message = R.string.DonationsError__your_backups_subscription_couldnt_be_displayed, + positiveAction = callback.onContactSupport(context), + negativeAction = null + ) + else -> DonationErrorParams( - title = R.string.DonationsErrors__couldnt_add_badge, // TODO [backups] -- This will need a backups-specific string - message = R.string.DonationsErrors__your_badge_could_not, // TODO [backups] -- This will need a backups-specific string + title = R.string.DonationsErrors__couldnt_add_badge, + message = R.string.DonationsErrors__your_badge_could_not, positiveAction = callback.onContactSupport(context), negativeAction = null ) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c89a201415..9e6426a510 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -5816,6 +5816,10 @@ Your donation couldn\'t be processed and you have not been charged. Please try again. Still processing Couldn\'t add badge + + Something went wrong + + Your backups subscription couldn\'t be displayed. Please contact support. Failed to validate badge