mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[UI/Login] Fix QR scanning icon not showing.
This commit is contained in:
parent
11fabb231f
commit
6d36ab27d1
@ -156,12 +156,12 @@ class LoginFormFragment : Fragment(), CoroutineScope {
|
||||
}
|
||||
|
||||
if (credential.qrDecoderClass != null) {
|
||||
b.textLayout.endIconMode = TextInputLayout.END_ICON_CUSTOM
|
||||
b.textLayout.endIconDrawable = IconicsDrawable(activity).apply {
|
||||
icon = CommunityMaterial.Icon3.cmd_qrcode
|
||||
sizeDp = 24
|
||||
colorAttr(activity, R.attr.colorOnBackground)
|
||||
}
|
||||
b.textLayout.endIconMode = TextInputLayout.END_ICON_CUSTOM
|
||||
b.textLayout.setEndIconOnClickListener {
|
||||
scanQrCode(credential)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user