Skip to content

Commit

Permalink
[MBL-1353] Update copy to be blank for late pledges (#2011)
Browse files Browse the repository at this point in the history
* update copy to be blank for late pledges, for now

* remove unused import
  • Loading branch information
mtgriego authored Apr 4, 2024
1 parent 765eb7f commit 3bc4ede
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -89,7 +88,9 @@ class ThanksShareViewHolder(private val binding: ThanksShareViewBinding) : KSVie
}

private fun showPostCampaignPledgeText(pcptext: Triple<Project, Double, String>) {
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<String, String>) {
Expand Down

0 comments on commit 3bc4ede

Please sign in to comment.