add an option for showing character counter at sending messages

This commit is contained in:
tibbi 2020-11-04 12:36:02 +01:00
parent 87e1be8e1b
commit 82f78f002e
6 changed files with 65 additions and 5 deletions

View file

@ -13,4 +13,8 @@ class Config(context: Context) : BaseConfig(context) {
}
fun getUseSIMIdAtNumber(number: String) = prefs.getInt(USE_SIM_ID_PREFIX + number, 0)
var showCharacterCounter: Boolean
get() = prefs.getBoolean(SHOW_CHARACTER_COUNTER, false)
set(showCharacterCounter) = prefs.edit().putBoolean(SHOW_CHARACTER_COUNTER, showCharacterCounter).apply()
}