From a31af991c58c4a493ea27827464e464f34971e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 3 Oct 2023 10:34:55 +0200 Subject: [PATCH] Rename constant and prefs key for `isArchiveAvailable` --- .../com/simplemobiletools/smsmessenger/helpers/Config.kt | 4 ++-- .../com/simplemobiletools/smsmessenger/helpers/Constants.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt index 99230836..274f2e87 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Config.kt @@ -113,6 +113,6 @@ class Config(context: Context) : BaseConfig(context) { set(lastRecycleBinCheck) = prefs.edit().putLong(LAST_RECYCLE_BIN_CHECK, lastRecycleBinCheck).apply() var isArchiveAvailable: Boolean - get() = prefs.getBoolean(USE_THREADS_ARCHIVE, true) - set(useThreadsArchive) = prefs.edit().putBoolean(USE_THREADS_ARCHIVE, useThreadsArchive).apply() + get() = prefs.getBoolean(IS_ARCHIVE_AVAILABLE, true) + set(useThreadsArchive) = prefs.edit().putBoolean(IS_ARCHIVE_AVAILABLE, useThreadsArchive).apply() } diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt index d9972a23..ef1ae601 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt @@ -43,7 +43,7 @@ const val MESSAGE_ID = "message_id" const val USE_RECYCLE_BIN = "use_recycle_bin" const val LAST_RECYCLE_BIN_CHECK = "last_recycle_bin_check" 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." const val MARK_AS_READ = PATH + "mark_as_read"