mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 13:23:28 +03:00
fix(chapters): fixed crashing when seeking below 0 seconds
This commit is contained in:
parent
706621f332
commit
e5ea1e0787
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class CurrentChapter(
|
|||
if (this.chapters.isEmpty()) {
|
||||
return
|
||||
}
|
||||
val chapter = this.chapters.last { it.time <= (value ?: 0F) }
|
||||
val chapter = this.chapters.last { it.time <= (value ?: 0F).coerceAtLeast(0F) }
|
||||
view.setComposeContent {
|
||||
CurrentChapterComposable(
|
||||
chapter = chapter,
|
||||
|
|
Loading…
Reference in a new issue