🛠️ Fix crash in Reader
* Fixed crash caused by chapter progress calculation Resolves: #90
This commit is contained in:
parent
4e5b5bcb26
commit
e66a514827
1 changed files with 1 additions and 1 deletions
|
|
@ -638,7 +638,7 @@ class ReaderViewModel @Inject constructor(
|
|||
|
||||
val currentIndex = index - startIndex
|
||||
val endIndex = endIndex - startIndex
|
||||
currentIndex / endIndex.toFloat()
|
||||
(currentIndex / endIndex.toFloat()).coerceIn(0f, 1f)
|
||||
}
|
||||
|
||||
_state.update {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue