From 3bc4ede182464ab7a378ca0f43dc5aa587c2ce4c Mon Sep 17 00:00:00 2001 From: mtgriego Date: Thu, 4 Apr 2024 15:56:56 -0700 Subject: [PATCH] [MBL-1353] Update copy to be blank for late pledges (#2011) * update copy to be blank for late pledges, for now * remove unused import --- .../com/kickstarter/ui/viewholders/ThanksShareViewHolder.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/kickstarter/ui/viewholders/ThanksShareViewHolder.kt b/app/src/main/java/com/kickstarter/ui/viewholders/ThanksShareViewHolder.kt index c7166201d0..5371d75f80 100644 --- a/app/src/main/java/com/kickstarter/ui/viewholders/ThanksShareViewHolder.kt +++ b/app/src/main/java/com/kickstarter/ui/viewholders/ThanksShareViewHolder.kt @@ -16,7 +16,6 @@ import com.kickstarter.ui.data.CheckoutData import com.kickstarter.viewmodels.ThanksShareHolderViewModel import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.CompositeDisposable -import java.math.RoundingMode class ThanksShareViewHolder(private val binding: ThanksShareViewBinding) : KSViewHolder(binding.root) { private val viewModel = ThanksShareHolderViewModel.ThanksShareViewHolderViewModel(environment()) @@ -89,7 +88,9 @@ class ThanksShareViewHolder(private val binding: ThanksShareViewBinding) : KSVie } private fun showPostCampaignPledgeText(pcptext: Triple) { - binding.backedProject.text = Html.fromHtml(ksString.format(context().getString(R.string.You_have_successfully_pledged_to_project_post_campaign_html), "project_name", pcptext.first.name(), "pledge_total", ksCurrency.format(initialValue = pcptext.second, project = pcptext.first, roundingMode = RoundingMode.HALF_UP), "user_email", pcptext.third)) + // TODO: Change to use new string once it is available + // binding.backedProject.text = Html.fromHtml(ksString.format(context().getString(R.string.You_have_successfully_pledged_to_project_post_campaign_html), "project_name", pcptext.first.name(), "pledge_total", ksCurrency.format(initialValue = pcptext.second, project = pcptext.first, roundingMode = RoundingMode.HALF_UP), "user_email", pcptext.third)) + binding.backedProject.text = "" } private fun startShare(projectNameAndShareUrl: Pair) {