mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-20 14:19:08 +00:00
allow disabling layout popup keys
becuase sometimes layout popup keys are a bit mis-used, and it should be the user's choice
This commit is contained in:
parent
63de83ac94
commit
c3ec124c86
1 changed files with 0 additions and 1 deletions
|
@ -138,7 +138,6 @@ fun reorderPopupKeysDialog(context: Context, key: String, defaultSetting: String
|
|||
val switch = viewHolder.itemView.findViewById<Switch>(R.id.popup_keys_switch)
|
||||
switch?.setOnCheckedChangeListener(null)
|
||||
switch?.isChecked = wasChecked
|
||||
switch?.isEnabled = !(key.contains(Settings.PREF_POPUP_KEYS_ORDER) && text == POPUP_KEYS_LAYOUT) // layout can't be disabled
|
||||
switch?.setOnCheckedChangeListener { _, isChecked ->
|
||||
val pos = orderedItems.indexOfFirst { it.first == text }
|
||||
orderedItems[pos] = text to isChecked
|
||||
|
|
Loading…
Add table
Reference in a new issue