mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 15:32:48 +00:00
fix wrong filename for customized json layouts
This commit is contained in:
parent
29a4bb4558
commit
c29eb0d03e
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ fun editCustomLayout(layoutName: String, context: Context, startContent: String?
|
||||||
file.parentFile?.mkdir()
|
file.parentFile?.mkdir()
|
||||||
file.writeText(content)
|
file.writeText(content)
|
||||||
if (isJson != wasJson) // unlikely to be needed, but better be safe
|
if (isJson != wasJson) // unlikely to be needed, but better be safe
|
||||||
file.renameTo(File(file.absolutePath.substringBeforeLast(".") + if (isJson) "json" else "txt"))
|
file.renameTo(File(file.absolutePath.substringBeforeLast(".") + "." + if (isJson) "json" else "txt"))
|
||||||
KeyboardSwitcher.getInstance().forceUpdateKeyboardTheme(context)
|
KeyboardSwitcher.getInstance().forceUpdateKeyboardTheme(context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue