Don't capture click on login student select checkbox (#862)

This commit is contained in:
Mikołaj Pich 2020-06-02 00:57:22 +02:00 committed by GitHub
parent ab7d30c995
commit 5c0160a24d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,9 +31,14 @@ class LoginStudentSelectAdapter @Inject constructor() :
loginItemSchool.text = student.schoolName
loginItemName.isEnabled = !alreadySaved
loginItemSchool.isEnabled = !alreadySaved
loginItemCheck.isEnabled = !alreadySaved
loginItemSignedIn.visibility = if (alreadySaved) View.VISIBLE else View.GONE
with(loginItemCheck) {
isEnabled = !alreadySaved
keyListener = null
isChecked = false
}
root.setOnClickListener {
onClickListener(student, alreadySaved)