do not try updating preview text if the button has none
This commit is contained in:
parent
5f22eaf00c
commit
444c6eabf2
|
@ -797,7 +797,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||||
key.icon
|
key.icon
|
||||||
}
|
}
|
||||||
mPreviewText!!.setCompoundDrawables(null, null, null, bottomDrawable)
|
mPreviewText!!.setCompoundDrawables(null, null, null, bottomDrawable)
|
||||||
mPreviewText!!.text = null
|
|
||||||
} else {
|
} else {
|
||||||
mPreviewText!!.setCompoundDrawables(null, null, null, null)
|
mPreviewText!!.setCompoundDrawables(null, null, null, null)
|
||||||
mPreviewText!!.text = getPreviewText(key)
|
mPreviewText!!.text = getPreviewText(key)
|
||||||
|
|
Loading…
Reference in New Issue