mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix crash when migrated layouts have more than 1 subtype and one of which has no layout specifier
This commit is contained in:
parent
eb65ad124d
commit
a994bb5432
@ -612,4 +612,5 @@ Tip: You can download and remove dictionaries by going to <b>Languages &
|
||||
<string name="layout_telugu">Telugu</string>
|
||||
<string name="layout_thai">Thai</string>
|
||||
<string name="layout_uzbek">Uzbek</string>
|
||||
<string name="layout_default">Default</string>
|
||||
</resources>
|
||||
|
@ -235,7 +235,7 @@ fun LanguagesScreen(navController: NavHostController = rememberNavController())
|
||||
subtypes.forEach {
|
||||
val layout = Subtypes.getLayoutName(
|
||||
context,
|
||||
it.getExtraValueOf(Constants.Subtype.ExtraValue.KEYBOARD_LAYOUT_SET)
|
||||
it.getExtraValueOf(Constants.Subtype.ExtraValue.KEYBOARD_LAYOUT_SET) ?: "default"
|
||||
)
|
||||
SettingItem(title = "Layout $layout") {
|
||||
IconButton(modifier = Modifier.fillMaxHeight(), onClick = {
|
||||
|
Loading…
Reference in New Issue
Block a user