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,10 +20,12 @@ 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)
|
||||
Intent(Intent.ACTION_OPEN_DOCUMENT_TREE).apply {
|
||||
type = "*/*"
|
||||
startActivityForResult(intent, requestCode)
|
||||
}
|
||||
}
|
||||
}
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
|
Loading…
Reference in a new issue