add a type to open_document_tree intent
This commit is contained in:
parent
9f9387cada
commit
58f05434a9
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue