From c79242f571e79f5c9dc6cd1f171aa12ca9c69099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sat, 15 Jul 2023 16:33:21 +0200 Subject: [PATCH] Rename JSON_FILE_EXT to JSON_FILE_EXTENSION --- .../smsmessenger/dialogs/ExportMessagesDialog.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/dialogs/ExportMessagesDialog.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ExportMessagesDialog.kt index fbc451e4..86067596 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ExportMessagesDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/dialogs/ExportMessagesDialog.kt @@ -7,7 +7,7 @@ import com.simplemobiletools.commons.extensions.* import com.simplemobiletools.smsmessenger.R import com.simplemobiletools.smsmessenger.activities.SimpleActivity import com.simplemobiletools.smsmessenger.extensions.config -import com.simplemobiletools.smsmessenger.helpers.JSON_FILE_EXT +import com.simplemobiletools.smsmessenger.helpers.JSON_FILE_EXTENSION import kotlinx.android.synthetic.main.dialog_export_messages.view.* import java.io.File @@ -51,7 +51,7 @@ class ExportMessagesDialog( when { filename.isEmpty() -> activity.toast(R.string.empty_name) filename.isAValidFilename() -> { - val file = File(realPath, "$filename$JSON_FILE_EXT") + val file = File(realPath, "$filename$JSON_FILE_EXTENSION") if (!hidePath && file.exists()) { activity.toast(R.string.name_taken) return@setOnClickListener 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 0b7415f2..3bade2ac 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt @@ -28,7 +28,7 @@ const val PINNED_CONVERSATIONS = "pinned_conversations" const val BLOCKED_KEYWORDS = "blocked_keywords" const val EXPORT_SMS = "export_sms" const val EXPORT_MMS = "export_mms" -const val JSON_FILE_EXT = ".json" +const val JSON_FILE_EXTENSION = ".json" const val JSON_MIME_TYPE = "application/json" const val XML_MIME_TYPE = "text/xml" const val TXT_MIME_TYPE = "text/plain"