diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt index 9a2a1ccfe..d9914797e 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Activity.kt @@ -20,8 +20,10 @@ fun Activity.isShowingSAFDialog(file: File, treeUri: String, requestCode: Int): return if ((needsStupidWritePermissions(file.absolutePath) && treeUri.isEmpty())) { runOnUiThread { WritePermissionDialog(this) { - val intent = Intent(Intent.ACTION_OPEN_DOCUMENT_TREE) - startActivityForResult(intent, requestCode) + Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).apply { + type = "*/*" + startActivityForResult(intent, requestCode) + } } } true