forked from github/szkolny
[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) {
|
if (credential.qrDecoderClass != null) {
|
||||||
|
b.textLayout.endIconMode = TextInputLayout.END_ICON_CUSTOM
|
||||||
b.textLayout.endIconDrawable = IconicsDrawable(activity).apply {
|
b.textLayout.endIconDrawable = IconicsDrawable(activity).apply {
|
||||||
icon = CommunityMaterial.Icon3.cmd_qrcode
|
icon = CommunityMaterial.Icon3.cmd_qrcode
|
||||||
sizeDp = 24
|
sizeDp = 24
|
||||||
colorAttr(activity, R.attr.colorOnBackground)
|
colorAttr(activity, R.attr.colorOnBackground)
|
||||||
}
|
}
|
||||||
b.textLayout.endIconMode = TextInputLayout.END_ICON_CUSTOM
|
|
||||||
b.textLayout.setEndIconOnClickListener {
|
b.textLayout.setEndIconOnClickListener {
|
||||||
scanQrCode(credential)
|
scanQrCode(credential)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user