Try to show actual path in invalid location downloader notification

Instead of the class/hashCode, which doesn't mean much to a user.
This commit is contained in:
arkon
2023-12-31 23:33:10 -05:00
parent 6f34c5e894
commit 83130f9bf9
4 changed files with 14 additions and 3 deletions

View File

@@ -13,6 +13,9 @@ val UniFile.extension: String?
val UniFile.nameWithoutExtension: String?
get() = name?.substringBeforeLast('.')
val UniFile.displayablePath: String
get() = filePath ?: uri.toString()
fun UniFile.toTempFile(context: Context): File {
val inputStream = context.contentResolver.openInputStream(uri)!!
val tempFile = File.createTempFile(