From e0e96a5ae235273e26318281cdb6e0b5bf3aab95 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 20 Sep 2018 12:40:19 +0200 Subject: [PATCH] fix displaying gem cap in subscription details --- .../habitica/ui/views/subscriptions/SubscriptionDetailsView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionDetailsView.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionDetailsView.kt index 267691df34..64a989d563 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionDetailsView.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/views/subscriptions/SubscriptionDetailsView.kt @@ -80,7 +80,7 @@ class SubscriptionDetailsView : LinearLayout { } else { monthsSubscribedTextView.text = resources.getString(R.string.months, plan.consecutive?.count ?: 0) } - gemCapTextView.text = (plan.consecutive?.gemCapExtra ?: 0 + 25).toString() + gemCapTextView.text = plan.totalNumberOfGems().toString() currentHourglassesTextView.text = plan.consecutive?.trinkets.toString() if (plan.paymentMethod != null) {