Browse Source

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

pull/34/head
Jannik 1 month ago
parent
commit
a07f291098
Signed by: Seil0 GPG Key ID: E8459F3723C52C24
2 changed files with 8 additions and 6 deletions
  1. +4
    -4
      app/build.gradle
  2. +4
    -2
      app/src/main/java/org/mosad/teapod/ui/activity/main/fragments/MediaFragment.kt

+ 4
- 4
app/build.gradle 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'


+ 4
- 2
app/src/main/java/org/mosad/teapod/ui/activity/main/fragments/MediaFragment.kt 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
}
}
/**


Loading…
Cancel
Save