INNER CODE UNIT · Kotlin

onTextChanged

Keyspace-cloud/android · app/src/main/kotlin/cloud/keyspace/android/AddCard.kt:290

            override fun onTextChanged(cardNumber: CharSequence, start: Int, before: Int, count: Int) {
                val paymentGateway = misc.getPaymentGateway(cardNumber.toString())
                if (paymentGateway != null) {
                    val gatewayLogo = misc.getSiteIcon(paymentGateway, nameInput.currentTextColor)
                    if (gatewayLogo != null) {
                        paymentsGatewayIcon.setImageDrawable(gatewayLogo)
                        paymentsGatewayIcon.visibility = View.VISIBLE
                    } else paymentsGatewayIcon.visibility = View.GONE
                } else paymentsGatewayIcon.visibility = View.GONE
            }
        })

        atmPinLayout = findViewById (R.id.AtmPinLayout)
        atmPinLayout.visibility = View.GONE
        isAtmCard = findViewById (R.id.isAtmCard)
        isAtmCard.isChecked = false

        isAtmCard.setOnCheckedChangeListener { _, isChecked ->

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…