fix: Archive files not being scanned

This commit is contained in:
Ahmad Ansori Palembani 2024-05-29 06:57:54 +07:00
parent f28544edb1
commit e008d9fb29
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -14,7 +14,7 @@ val UniFile.nameWithoutExtension: String?
get() = name?.substringBeforeLast('.')
val UniFile.extension: String?
get() = name?.replace(nameWithoutExtension.orEmpty(), "")
get() = name?.replace("${nameWithoutExtension.orEmpty()}.", "")
fun UniFile.toTempFile(context: Context): File {
val inputStream = context.contentResolver.openInputStream(uri)!!