Rename JSON_FILE_EXT to JSON_FILE_EXTENSION
This commit is contained in:
parent
a35edce84a
commit
c79242f571
|
@ -7,7 +7,7 @@ import com.simplemobiletools.commons.extensions.*
|
||||||
import com.simplemobiletools.smsmessenger.R
|
import com.simplemobiletools.smsmessenger.R
|
||||||
import com.simplemobiletools.smsmessenger.activities.SimpleActivity
|
import com.simplemobiletools.smsmessenger.activities.SimpleActivity
|
||||||
import com.simplemobiletools.smsmessenger.extensions.config
|
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 kotlinx.android.synthetic.main.dialog_export_messages.view.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class ExportMessagesDialog(
|
||||||
when {
|
when {
|
||||||
filename.isEmpty() -> activity.toast(R.string.empty_name)
|
filename.isEmpty() -> activity.toast(R.string.empty_name)
|
||||||
filename.isAValidFilename() -> {
|
filename.isAValidFilename() -> {
|
||||||
val file = File(realPath, "$filename$JSON_FILE_EXT")
|
val file = File(realPath, "$filename$JSON_FILE_EXTENSION")
|
||||||
if (!hidePath && file.exists()) {
|
if (!hidePath && file.exists()) {
|
||||||
activity.toast(R.string.name_taken)
|
activity.toast(R.string.name_taken)
|
||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
|
|
|
@ -28,7 +28,7 @@ const val PINNED_CONVERSATIONS = "pinned_conversations"
|
||||||
const val BLOCKED_KEYWORDS = "blocked_keywords"
|
const val BLOCKED_KEYWORDS = "blocked_keywords"
|
||||||
const val EXPORT_SMS = "export_sms"
|
const val EXPORT_SMS = "export_sms"
|
||||||
const val EXPORT_MMS = "export_mms"
|
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 JSON_MIME_TYPE = "application/json"
|
||||||
const val XML_MIME_TYPE = "text/xml"
|
const val XML_MIME_TYPE = "text/xml"
|
||||||
const val TXT_MIME_TYPE = "text/plain"
|
const val TXT_MIME_TYPE = "text/plain"
|
||||||
|
|
Loading…
Reference in New Issue