From 25a86693f1bb36bf89e0efe11089637ef86d97c3 Mon Sep 17 00:00:00 2001 From: dkadrikj Date: Thu, 4 Nov 2021 19:34:07 +0100 Subject: [PATCH] Fix for incorrect annual price. --- .../me/proton/core/plan/presentation/view/PlanItemView.kt | 2 +- plan/presentation/src/main/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plan/presentation/src/main/kotlin/me/proton/core/plan/presentation/view/PlanItemView.kt b/plan/presentation/src/main/kotlin/me/proton/core/plan/presentation/view/PlanItemView.kt index 12b147d06..4611fa9d5 100644 --- a/plan/presentation/src/main/kotlin/me/proton/core/plan/presentation/view/PlanItemView.kt +++ b/plan/presentation/src/main/kotlin/me/proton/core/plan/presentation/view/PlanItemView.kt @@ -194,7 +194,7 @@ class PlanItemView @JvmOverloads constructor( planCycleText.visibility = VISIBLE planPriceDescriptionText.text = String.format( context.getString(R.string.plans_billed_yearly), - billableAmount.formatCentsPriceDefaultLocale(currency.name, fractionDigits = 2) + (monthlyPrice * MONTHS_IN_YEAR).formatCentsPriceDefaultLocale(currency.name, fractionDigits = 2) ) } else { when (cycle) { diff --git a/plan/presentation/src/main/res/values/strings.xml b/plan/presentation/src/main/res/values/strings.xml index 133c88908..17b1ea0d7 100644 --- a/plan/presentation/src/main/res/values/strings.xml +++ b/plan/presentation/src/main/res/values/strings.xml @@ -37,7 +37,7 @@ Upgrade plan Subscription Your plan will automatically renew on - *Billed as %s per year + *Billed annually at %s Billed annually Billed monthly Billed every 2 years