mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-29 11:08:53 +03:00
Bugfix. Sharing images with very long name (#1999)
* Fix sharing with very long images name * Fix dropLast to take
This commit is contained in:
parent
5c1770247c
commit
003dca9d45
1 changed files with 2 additions and 1 deletions
|
@ -434,7 +434,8 @@ class ReaderPresenter(
|
|||
|
||||
// Build destination file.
|
||||
val filename = DiskUtil.buildValidFilename(
|
||||
"${manga.title} - ${chapter.name}") + " - ${page.number}.${type.extension}"
|
||||
"${manga.title} - ${chapter.name}".take(225)
|
||||
) + " - ${page.number}.${type.extension}"
|
||||
|
||||
val destFile = File(directory, filename)
|
||||
stream().use { input ->
|
||||
|
|
Loading…
Reference in a new issue