mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix crash when duration is null
This commit is contained in:
parent
4d5fbd8eea
commit
9e32ff7979
1 changed files with 2 additions and 2 deletions
|
@ -1559,8 +1559,8 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
|||
|
||||
private fun stopUpdatingRemainingTime() {
|
||||
handler.removeCallbacksAndMessages(null)
|
||||
val totalDuration = player.getDuration()!! / 1000
|
||||
playerBinding?.exoDuration?.text = DateUtils.formatElapsedTime(totalDuration)
|
||||
val totalDuration = player.getDuration()?.div(1000)
|
||||
playerBinding?.exoDuration?.text = totalDuration?.let { DateUtils.formatElapsedTime(it) }
|
||||
isRemainingTimeEnabled = false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue