do not try updating preview text if the button has none

This commit is contained in:
tibbi 2022-01-09 23:04:17 +01:00
parent 5f22eaf00c
commit 444c6eabf2
1 changed files with 0 additions and 1 deletions

View File

@ -797,7 +797,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
key.icon
}
mPreviewText!!.setCompoundDrawables(null, null, null, bottomDrawable)
mPreviewText!!.text = null
} else {
mPreviewText!!.setCompoundDrawables(null, null, null, null)
mPreviewText!!.text = getPreviewText(key)