mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #3749 from Bnyro/master
Fix crash when closing player due to view bindings
This commit is contained in:
commit
df7f533ce5
@ -1128,7 +1128,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
*/
|
||||
@SuppressLint("SetTextI18n")
|
||||
private fun updateDisplayedDuration() {
|
||||
if (exoPlayer.duration < 0 || streams.livestream) return
|
||||
if (exoPlayer.duration < 0 || streams.livestream || _binding == null) return
|
||||
|
||||
playerBinding.duration.text = DateUtils.formatElapsedTime(
|
||||
exoPlayer.duration.div(1000),
|
||||
|
Loading…
Reference in New Issue
Block a user