Remove alpha from pending badge states.

This commit is contained in:
Alex Hart
2023-10-16 14:53:46 -03:00
committed by Cody Henthorne
parent f9cd3decb1
commit 5aec4b4571

View File

@@ -89,20 +89,17 @@ object ActiveSubscriptionPreference {
model.renewalTimestamp
)
)
badge.alpha = 1f
progress.visible = false
}
private fun presentPendingBankTransferState(model: Model) {
expiry.text = context.getString(R.string.MySupportPreference__payment_pending)
badge.alpha = 0.2f
progress.visible = true
itemView.setOnClickListener { model.onPendingClick(model.price) }
}
private fun presentInProgressState() {
expiry.text = context.getString(R.string.MySupportPreference__processing_transaction)
badge.alpha = 0.2f
progress.visible = true
}
@@ -125,7 +122,6 @@ object ActiveSubscriptionPreference {
},
ContextCompat.getColor(context, R.color.signal_accent_primary)
)
badge.alpha = 0.2f
progress.visible = false
}
@@ -140,7 +136,6 @@ object ActiveSubscriptionPreference {
},
ContextCompat.getColor(context, R.color.signal_accent_primary)
)
badge.alpha = 0.2f
progress.visible = false
}
}