mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Update how we deal with failed or in progress subscriptions.
This commit is contained in:
committed by
Cody Henthorne
parent
b4fe5bdcc6
commit
8a00caabd7
@@ -79,6 +79,7 @@ data class Subscription(
|
||||
}
|
||||
|
||||
class Model(
|
||||
val activePrice: FiatMoney?,
|
||||
val subscription: Subscription,
|
||||
val isSelected: Boolean,
|
||||
val isActive: Boolean,
|
||||
@@ -134,7 +135,7 @@ data class Subscription(
|
||||
|
||||
val formattedPrice = FiatMoneyUtil.format(
|
||||
context.resources,
|
||||
model.subscription.prices.first { it.currency == model.selectedCurrency },
|
||||
model.activePrice ?: model.subscription.prices.first { it.currency == model.selectedCurrency },
|
||||
FiatMoneyUtil.formatOptions()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user