Rename constant and prefs key for `isArchiveAvailable`

This commit is contained in:
Ensar Sarajčić 2023-10-03 10:34:55 +02:00
parent e41630e543
commit a31af991c5
2 changed files with 3 additions and 3 deletions

View File

@ -113,6 +113,6 @@ class Config(context: Context) : BaseConfig(context) {
set(lastRecycleBinCheck) = prefs.edit().putLong(LAST_RECYCLE_BIN_CHECK, lastRecycleBinCheck).apply() set(lastRecycleBinCheck) = prefs.edit().putLong(LAST_RECYCLE_BIN_CHECK, lastRecycleBinCheck).apply()
var isArchiveAvailable: Boolean var isArchiveAvailable: Boolean
get() = prefs.getBoolean(USE_THREADS_ARCHIVE, true) get() = prefs.getBoolean(IS_ARCHIVE_AVAILABLE, true)
set(useThreadsArchive) = prefs.edit().putBoolean(USE_THREADS_ARCHIVE, useThreadsArchive).apply() set(useThreadsArchive) = prefs.edit().putBoolean(IS_ARCHIVE_AVAILABLE, useThreadsArchive).apply()
} }

View File

@ -43,7 +43,7 @@ const val MESSAGE_ID = "message_id"
const val USE_RECYCLE_BIN = "use_recycle_bin" const val USE_RECYCLE_BIN = "use_recycle_bin"
const val LAST_RECYCLE_BIN_CHECK = "last_recycle_bin_check" const val LAST_RECYCLE_BIN_CHECK = "last_recycle_bin_check"
const val IS_RECYCLE_BIN = "is_recycle_bin" const val IS_RECYCLE_BIN = "is_recycle_bin"
const val USE_THREADS_ARCHIVE = "use_threads_archive" const val IS_ARCHIVE_AVAILABLE = "is_archive_available"
private const val PATH = "com.simplemobiletools.smsmessenger.action." private const val PATH = "com.simplemobiletools.smsmessenger.action."
const val MARK_AS_READ = PATH + "mark_as_read" const val MARK_AS_READ = PATH + "mark_as_read"