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

This commit is contained in:
Jannik 2021-02-27 21:12:42 +01:00
parent fad64ad385
commit a07f291098
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 8 additions and 6 deletions

View File

@ -53,10 +53,10 @@ dependencies {
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.exoplayer:exoplayer-core:2.13.1'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.13.1'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.13.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.13.2'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.13.2'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.13.2'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.2'
implementation 'org.jsoup:jsoup:1.13.1'
implementation 'com.github.bumptech.glide:glide:4.12.0'

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
}
}
/**