Try to show actual path in invalid location downloader notification

Instead of the class/hashCode, which doesn't mean much to a user.

(cherry picked from commit 83130f9bf964dfce512c77803f8b5bcfb90c8f08)
This commit is contained in:
arkon
2023-12-31 23:33:10 -05:00
committed by Jobobby04
parent e90f656bb6
commit 25e49a6b3d
4 changed files with 14 additions and 3 deletions
@@ -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(