mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
feature(language): add vi string + config Vn
Signed-off-by: Hung <>
This commit is contained in:
@ -418,6 +418,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
}
|
||||
|
||||
setupEmojiPalette(toolbarColor = toolbarColor, backgroundColor = mBackgroundColor, textColor = mTextColor)
|
||||
if(context.config.keyboardLanguage == LANGUAGE_VIETNAMESE_TELEX){
|
||||
setupLanguageTelex()
|
||||
}else{
|
||||
cachedVNTelexData.clear()
|
||||
}
|
||||
setupStoredClips()
|
||||
}
|
||||
|
||||
@ -1506,6 +1511,13 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
}
|
||||
}
|
||||
|
||||
// For Vietnamese - Telex
|
||||
private fun setupLanguageTelex() {
|
||||
ensureBackgroundThread {
|
||||
parseRawJsonSpecsFile(context, LANGUAGE_VN_TELEX)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupEmojiAdapter(emojis: List<String>) {
|
||||
mEmojiPaletteHolder?.emojis_list?.apply {
|
||||
val emojiItemWidth = context.resources.getDimensionPixelSize(R.dimen.emoji_item_size)
|
||||
|
Reference in New Issue
Block a user