We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d0ea8 commit 88100eaCopy full SHA for 88100ea
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt
@@ -649,9 +649,11 @@ class MainActivity : SimpleActivity() {
649
} else {
650
Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
651
addCategory(Intent.CATEGORY_OPENABLE)
652
- type = "text/*"
+ type = "*/*"
653
654
try {
655
+ val mimetypes = arrayOf("text/*", "application/json")
656
+ putExtra(Intent.EXTRA_MIME_TYPES, mimetypes)
657
startActivityForResult(this, PICK_OPEN_FILE_INTENT)
658
} catch (e: ActivityNotFoundException) {
659
toast(R.string.system_service_disabled, Toast.LENGTH_LONG)
0 commit comments