fix #66, allow undoing the "Always use this SIM" option

This commit is contained in:
tibbi
2020-12-31 19:43:48 +01:00
parent cf8a8e9e61
commit a721ba7261
5 changed files with 42 additions and 6 deletions

View File

@ -36,6 +36,10 @@ class Config(context: Context) : BaseConfig(context) {
fun getCustomSIM(number: String) = prefs.getString(REMEMBER_SIM_PREFIX + number, "")
fun removeCustomSIM(number: String) {
prefs.edit().remove(REMEMBER_SIM_PREFIX + number).apply()
}
var groupSubsequentCalls: Boolean
get() = prefs.getBoolean(GROUP_SUBSEQUENT_CALLS, true)
set(groupSubsequentCalls) = prefs.edit().putBoolean(GROUP_SUBSEQUENT_CALLS, groupSubsequentCalls).apply()