only update media title if there is one & update exoplayer to 2.13.2

This commit is contained in:
2021-02-27 21:12:42 +01:00
parent fad64ad385
commit a07f291098
2 changed files with 8 additions and 6 deletions

View File

@ -74,8 +74,10 @@ class MediaFragment(private val mediaId: Int) : Fragment() {
override fun onResume() {
super.onResume()
// update the next ep text, since it may have changed
binding.textTitle.text = model.nextEpisode.title
// update the next ep text if there is one, since it may have changed
if (model.nextEpisode.title.isNotEmpty()) {
binding.textTitle.text = model.nextEpisode.title
}
}
/**