mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
fix #66, allow undoing the "Always use this SIM" option
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user