mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
store the last used contact source
This commit is contained in:
@ -27,4 +27,8 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
var startNameWithSurname: Boolean
|
||||
get() = prefs.getBoolean(START_NAME_WITH_SURNAME, false)
|
||||
set(startNameWithSurname) = prefs.edit().putBoolean(START_NAME_WITH_SURNAME, startNameWithSurname).apply()
|
||||
|
||||
var lastUsedContactSource: String
|
||||
get() = prefs.getString(LAST_USED_CONTACT_SOURCE, "")
|
||||
set(lastUsedContactSource) = prefs.edit().putString(LAST_USED_CONTACT_SOURCE, lastUsedContactSource).apply()
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ package com.simplemobiletools.contacts.helpers
|
||||
val CALL_CONTACT_ON_CLICK = "call_contact_on_click"
|
||||
val DISPLAY_CONTACT_SOURCES = "display_contact_sources"
|
||||
val START_NAME_WITH_SURNAME = "start_name_with_surname"
|
||||
val LAST_USED_CONTACT_SOURCE = "last_used_contact_source"
|
||||
|
||||
val CONTACT_ID = "contact_id"
|
||||
|
||||
|
Reference in New Issue
Block a user