mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 07:37:41 +00:00
fix unexpected dialog dismisses
This commit is contained in:
parent
b31d6d0051
commit
2700c3428a
9 changed files with 9 additions and 4 deletions
|
@ -114,6 +114,7 @@ private fun ToolbarKeyCustomizer(
|
|||
stringResource(R.string.button_default)
|
||||
else null,
|
||||
onNeutral = {
|
||||
onDismissRequest()
|
||||
val keys = readCustomKeyCodes(prefs).toMutableMap()
|
||||
keys.remove(key.name)
|
||||
prefs.edit().putString(Settings.PREF_TOOLBAR_CUSTOM_KEY_CODES, Json.encodeToString(keys)).apply()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue