Open jacopotediosi opened 4 years ago
@jacopotediosi we do see the same issue on an Android 8.1 device. Were you able to fix this?
@lukeisontheroad Unfortunately no. The documentation is very weak on this point.
I think these are absolutely cases that you need to be able to handle. Even if the SAF screen is changed to only query your providers once, there's nothing preventing apps from querying your provider multiple times.
I am studying Documents Providers and I have found something that I cannot understand, which also happens with the "StorageProvider" example of this repository.
It appears that all functions are called more than once when I open SAF.
I report the logcat:
When I first open SAF:
When I open a file (eg a photo with Google Foto):
Is it normal for queryDocument() and openDocument () to be called so many times? That way, if my document provider were to download a file over the network, wouldn't it be downloaded multiple times?