mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
parent
6887d98f15
commit
446b146f95
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ val UniFile.nameWithoutExtension: String?
|
||||||
fun UniFile.toTempFile(context: Context): File {
|
fun UniFile.toTempFile(context: Context): File {
|
||||||
val inputStream = context.contentResolver.openInputStream(uri)!!
|
val inputStream = context.contentResolver.openInputStream(uri)!!
|
||||||
val tempFile = File.createTempFile(
|
val tempFile = File.createTempFile(
|
||||||
nameWithoutExtension.orEmpty(),
|
nameWithoutExtension.orEmpty().padEnd(3), // Prefix must be 3+ chars
|
||||||
null,
|
null,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue