Rename JSON import constants to better reflect contents
This commit is contained in:
parent
e825e44f54
commit
0ad178fddb
|
@ -626,8 +626,8 @@ class MainActivity : SimpleActivity() {
|
||||||
if (isQPlus()) {
|
if (isQPlus()) {
|
||||||
Intent(Intent.ACTION_GET_CONTENT).apply {
|
Intent(Intent.ACTION_GET_CONTENT).apply {
|
||||||
addCategory(Intent.CATEGORY_OPENABLE)
|
addCategory(Intent.CATEGORY_OPENABLE)
|
||||||
type = EXPORT_MIME_TYPE
|
type = JSON_IMPORT_MIME_TYPE
|
||||||
putExtra(Intent.EXTRA_MIME_TYPES, arrayOf(EXPORT_MIME_TYPE, XML_IMPORT_MIME_TYPE))
|
putExtra(Intent.EXTRA_MIME_TYPES, arrayOf(JSON_IMPORT_MIME_TYPE, XML_IMPORT_MIME_TYPE))
|
||||||
|
|
||||||
try {
|
try {
|
||||||
startActivityForResult(this, PICK_IMPORT_SOURCE_INTENT)
|
startActivityForResult(this, PICK_IMPORT_SOURCE_INTENT)
|
||||||
|
|
|
@ -30,6 +30,7 @@ const val EXPORT_SMS = "export_sms"
|
||||||
const val EXPORT_MMS = "export_mms"
|
const val EXPORT_MMS = "export_mms"
|
||||||
const val EXPORT_MIME_TYPE = "application/json"
|
const val EXPORT_MIME_TYPE = "application/json"
|
||||||
const val EXPORT_FILE_EXT = ".json"
|
const val EXPORT_FILE_EXT = ".json"
|
||||||
|
const val JSON_IMPORT_MIME_TYPE = "application/json"
|
||||||
const val XML_IMPORT_MIME_TYPE = "text/xml"
|
const val XML_IMPORT_MIME_TYPE = "text/xml"
|
||||||
const val IMPORT_SMS = "import_sms"
|
const val IMPORT_SMS = "import_sms"
|
||||||
const val IMPORT_MMS = "import_mms"
|
const val IMPORT_MMS = "import_mms"
|
||||||
|
|
Loading…
Reference in New Issue