mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-13 03:05:11 +02:00
@ -16,7 +16,7 @@ val UniFile.nameWithoutExtension: String?
|
||||
fun UniFile.toTempFile(context: Context): File {
|
||||
val inputStream = context.contentResolver.openInputStream(uri)!!
|
||||
val tempFile = File.createTempFile(
|
||||
nameWithoutExtension.orEmpty(),
|
||||
nameWithoutExtension.orEmpty().padEnd(3), // Prefix must be 3+ chars
|
||||
null,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user