fix: set secondaryIcon color to textColor

This commit is contained in:
ismailnurudeen 2023-02-10 10:41:10 +01:00
parent a17421b84b
commit b14f7c67cc
1 changed files with 2 additions and 0 deletions

View File

@ -609,8 +609,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
if (code == KEYCODE_ENTER) {
key.icon!!.applyColorFilter(mPrimaryColor.getContrastColor())
key.secondaryIcon?.applyColorFilter(mPrimaryColor.getContrastColor())
} else if (code == KEYCODE_DELETE || code == KEYCODE_SHIFT || code == KEYCODE_EMOJI) {
key.icon!!.applyColorFilter(mTextColor)
key.secondaryIcon?.applyColorFilter(mTextColor)
}
val keyIcon = key.icon!!
val secondaryIcon = key.secondaryIcon