mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-18 04:40:37 +01:00
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
|
||||
}
|
||||
mPreviewText!!.setCompoundDrawables(null, null, null, bottomDrawable)
|
||||
mPreviewText!!.text = null
|
||||
} else {
|
||||
mPreviewText!!.setCompoundDrawables(null, null, null, null)
|
||||
mPreviewText!!.text = getPreviewText(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user