Skip to content

Commit

Permalink
fix: crash when empty chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz authored Aug 26, 2024
1 parent de7765d commit 0352aa5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ class PlayerActivity : AppCompatActivity() {
"time-pos" -> viewModel.updatePlayBackPos(value.toFloat())
"demuxer-cache-time" -> viewModel.updateReadAhead(value = value)
"duration" -> viewModel.duration.update { value.toFloat() }
"chapter" -> viewModel.updateChapter(value)
"chapter" -> {
if (value == "-1") return
viewModel.updateChapter(value)
}
}
}

Expand Down

0 comments on commit 0352aa5

Please sign in to comment.