add a type to open_document_tree intent

This commit is contained in:
tibbi 2017-03-23 18:51:15 +01:00
parent 9f9387cada
commit 58f05434a9

View file

@ -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