Closed Bersh closed 1 year ago
First off, thanks for the detailed report.
Guess probably you would like to use openDocumentTree
instead of getMediaStoreContentDirectory
.
getMediaStoreContentDirectory
will be removed soon and will be internally integrated.
Let me know if it solves or may I should know something more about your use-case.
Describe the bug I try to create an instance of
DocumentFile
from URI returned bygetMediaStoreContentDirectory()
function. Unfortinately when I call.toDocumentFile()
on the URI I get an exception:To Reproduce Lets take
Downloads
folder for example. The same issue happens when you use other media store directories as well. Try to createDocumentFile
fromDownloads
directory URI returned bygetMediaStoreContentDirectory
call like this.Observe the exception
Expected behavior
DocumentFile
instance is created from the given URI