diff --git a/app/build.gradle b/app/build.gradle index 5f943f9..24fec28 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,7 +57,7 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3' implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' - implementation 'androidx.security:security-crypto:1.1.0-alpha03' + implementation 'androidx.security:security-crypto:1.1.0-alpha04' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' @@ -80,8 +80,8 @@ dependencies { implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version" testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + androidTestImplementation 'androidx.test.ext:junit:1.1.4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' } diff --git a/app/src/main/java/org/mosad/teapod/ui/activity/player/PlayerActivity.kt b/app/src/main/java/org/mosad/teapod/ui/activity/player/PlayerActivity.kt index 952ffb0..e0b537c 100644 --- a/app/src/main/java/org/mosad/teapod/ui/activity/player/PlayerActivity.kt +++ b/app/src/main/java/org/mosad/teapod/ui/activity/player/PlayerActivity.kt @@ -46,6 +46,7 @@ import androidx.lifecycle.lifecycleScope import com.google.android.exoplayer2.ExoPlayer import com.google.android.exoplayer2.Player import com.google.android.exoplayer2.ui.StyledPlayerControlView +import com.google.android.exoplayer2.ui.StyledPlayerView import com.google.android.exoplayer2.util.Util import kotlinx.coroutines.launch import org.mosad.teapod.R @@ -251,7 +252,7 @@ class PlayerActivity : AppCompatActivity() { playerBinding.videoView.player = model.player // when the player controls get hidden, hide the bars too - playerBinding.videoView.setControllerVisibilityListener { + playerBinding.videoView.setControllerVisibilityListener(StyledPlayerView.ControllerVisibilityListener { when (it) { View.GONE -> { hideBars() @@ -259,7 +260,7 @@ class PlayerActivity : AppCompatActivity() { } View.VISIBLE -> updateControls() } - } + }) playerBinding.videoView.setOnTouchListener { _, event -> gestureDetector.onTouchEvent(event) diff --git a/build.gradle b/build.gradle index 24e380e..857a21a 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = "1.7.20" ext.ktor_version = "2.1.3" - ext.exo_version = "2.17.1" + ext.exo_version = "2.18.2" repositories { google() mavenCentral()