fix newly added layout file not loaded

This commit is contained in:
Helium314 2024-06-14 18:26:42 +02:00
parent 753e5fa6a2
commit 5d0341195e

View file

@ -101,6 +101,7 @@ class LanguageSettingsDialog(
}
private fun addSubtype(name: String) {
onCustomLayoutFileListChanged()
val newSubtype = AdditionalSubtypeUtils.createEmojiCapableAdditionalSubtype(mainLocale, name, infos.first().subtype.isAsciiCapable)
val newSubtypeInfo = newSubtype.toSubtypeInfo(mainLocale, context, true, infos.first().hasDictionary) // enabled by default
val displayName = SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName(newSubtype)