Skip to content

Commit

Permalink
making card details set private
Browse files Browse the repository at this point in the history
  • Loading branch information
jleon15 committed Dec 14, 2022
1 parent cefc81c commit 7e4a6ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CardNumberElement @JvmOverloads constructor(
defStyleAttr: Int = 0) : TextElement(context, attrs, defStyleAttr) {

var cardDetails: CardBrandEnricher.CardDetails? = null
private set

private val cardBrandEnricher: CardBrandEnricher = CardBrandEnricher()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CardVerificationCodeElement @JvmOverloads constructor(
set(value) {
field = value

if (value != null) {
if (value != null && cardNumberElement != value) {
super.mask = field?.cardDetails?.cvcMask?.toList() ?: defaultMask
field?.addChangeEventListener { updateMask() }
}
Expand Down

0 comments on commit 7e4a6ab

Please sign in to comment.