[UI/Login] Fix QR scanning icon not showing.

This commit is contained in:
Kuba Szczodrzyński 2022-09-23 11:30:23 +02:00
parent 11fabb231f
commit 6d36ab27d1
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -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)
}