mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-09 16:17:44 +00:00
reload keyboard theme when changing number row setting
otherwise emoji keyboards are not properly reloaded and may end up misaligned
This commit is contained in:
parent
731c6cdd5e
commit
466ecfb78c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ fun createPreferencesSettings(context: Context) = listOf(
|
||||||
SwitchPreference(it, Defaults.PREF_ENABLE_CLIPBOARD_HISTORY)
|
SwitchPreference(it, Defaults.PREF_ENABLE_CLIPBOARD_HISTORY)
|
||||||
},
|
},
|
||||||
Setting(context, Settings.PREF_SHOW_NUMBER_ROW, R.string.number_row, R.string.number_row_summary) {
|
Setting(context, Settings.PREF_SHOW_NUMBER_ROW, R.string.number_row, R.string.number_row_summary) {
|
||||||
SwitchPreference(it, Defaults.PREF_SHOW_NUMBER_ROW) { KeyboardSwitcher.getInstance().reloadKeyboard() }
|
SwitchPreference(it, Defaults.PREF_SHOW_NUMBER_ROW) { KeyboardSwitcher.getInstance().setThemeNeedsReload() }
|
||||||
},
|
},
|
||||||
Setting(context, Settings.PREF_LOCALIZED_NUMBER_ROW, R.string.localized_number_row, R.string.localized_number_row_summary) {
|
Setting(context, Settings.PREF_LOCALIZED_NUMBER_ROW, R.string.localized_number_row, R.string.localized_number_row_summary) {
|
||||||
SwitchPreference(it, Defaults.PREF_LOCALIZED_NUMBER_ROW) {
|
SwitchPreference(it, Defaults.PREF_LOCALIZED_NUMBER_ROW) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue