You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, the bug can be avoided by setting the mime type explicitly:
val desc =FileDescription("Some_File.pdf", "", "application/pdf")
val filePdf =DocumentFileCompat.createDownloadWithMediaStoreFallback(this, desc)?.uri?.toDocumentFile(this)
Future improvements, maybe v1.4.1 will add automatic mime type detection, so you don't need to add mime type into the argument anymore.
Library version: 1.4.0
OS version: API 30
Device model: Emulator
Describe the bug
When creating a new file while a file with the same name does already exist, the "(2)" is added at the wrong place:
'Some_File.pdf (2) instead 'Some_File (2).pdf'.
To Reproduce
Bug cannot be reproduced on API 24.
File is created by:
Other:
This regression appeared after the update from 0.14.0 to 1.4.0 version.
The text was updated successfully, but these errors were encountered: