INNER CODE UNIT · Kotlin

beforeTextChanged

Keyspace-cloud/android · app/src/main/kotlin/cloud/keyspace/android/AddLogin.kt:279

            override fun beforeTextChanged(siteName: CharSequence, start: Int, count: Int, after: Int) { }
            override fun onTextChanged(siteName: CharSequence, start: Int, before: Int, count: Int) {
                thread {
                    val siteLogo = misc.getSiteIcon(siteName.toString(), siteNameInput.currentTextColor)
                    if (siteLogo != null/* && iconFileName == null*/) {
                        iconFileName = siteName.toString()
                        runOnUiThread {
                            siteNameInputIcon.setImageDrawable(siteLogo)
                        }
                    }
                }
            }
        })

        userNameInput = findViewById (R.id.userNameInput)
        userNameInput.imeOptions = IME_FLAG_NO_PERSONALIZED_LEARNING
        userNameInputLayout = findViewById (R.id.userNameInputLayout)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…