mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
allow toggling vibrations and popups on key presses
This commit is contained in:
@ -8,7 +8,11 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
fun newInstance(context: Context) = Config(context)
|
||||
}
|
||||
|
||||
var showClipboard: Boolean
|
||||
get() = prefs.getBoolean(SHOW_CLIPBOARD, true)
|
||||
set(showClipboard) = prefs.edit().putBoolean(SHOW_CLIPBOARD, showClipboard).apply()
|
||||
var vibrateOnKeypress: Boolean
|
||||
get() = prefs.getBoolean(VIBRATE_ON_KEYPRESS, true)
|
||||
set(vibrateOnKeypress) = prefs.edit().putBoolean(VIBRATE_ON_KEYPRESS, vibrateOnKeypress).apply()
|
||||
|
||||
var showPopupOnKeypress: Boolean
|
||||
get() = prefs.getBoolean(SHOW_POPUP_ON_KEYPRESS, true)
|
||||
set(showPopupOnKeypress) = prefs.edit().putBoolean(SHOW_POPUP_ON_KEYPRESS, showPopupOnKeypress).apply()
|
||||
}
|
||||
|
Reference in New Issue
Block a user