adding 2 more call confirmation things

This commit is contained in:
tibbi 2021-07-25 17:26:42 +02:00
parent addc442133
commit 11c7236fdb
2 changed files with 5 additions and 0 deletions

View file

@ -434,4 +434,8 @@ open class BaseConfig(val context: Context) {
var favorites: MutableSet<String>
get() = prefs.getStringSet(FAVORITES, HashSet())!!
set(favorites) = prefs.edit().remove(FAVORITES).putStringSet(FAVORITES, favorites).apply()
var showCallConfirmation: Boolean
get() = prefs.getBoolean(SHOW_CALL_CONFIRMATION, false)
set(showCallConfirmation) = prefs.edit().putBoolean(SHOW_CALL_CONFIRMATION, showCallConfirmation).apply()
}

View file

@ -146,6 +146,7 @@ const val WAS_MESSENGER_RECORDER_SHOWN = "was_messenger_recorder_shown"
const val DEFAULT_TAB = "default_tab"
const val START_NAME_WITH_SURNAME = "start_name_with_surname"
const val FAVORITES = "favorites"
const val SHOW_CALL_CONFIRMATION = "show_call_confirmation"
// licenses
internal const val LICENSE_KOTLIN = 1