From 5c0160a24d2bc3e9e1f9205b2bccec2b2b2138a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Tue, 2 Jun 2020 00:57:22 +0200 Subject: [PATCH] Don't capture click on login student select checkbox (#862) --- .../login/studentselect/LoginStudentSelectAdapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/login/studentselect/LoginStudentSelectAdapter.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/login/studentselect/LoginStudentSelectAdapter.kt index 7383a5ec..f59260b4 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/login/studentselect/LoginStudentSelectAdapter.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/login/studentselect/LoginStudentSelectAdapter.kt @@ -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)