diff --git a/app/build.gradle b/app/build.gradle index 49f0ea73dc..227e8a93f2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1366 - versionName "0.13.66" + versionCode 1367 + versionName "0.13.67" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/viewer/VideoPlayerActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/viewer/VideoPlayerActivity.kt index ab15b789a9..94f41d3f77 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/viewer/VideoPlayerActivity.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/viewer/VideoPlayerActivity.kt @@ -50,7 +50,9 @@ class VideoPlayerActivity : AppCompatActivity(), AuthSessionUpdater.AuthCallback val callback = object : OnBackPressedCallback(true) { override fun handleOnBackPressed() { - exoPlayer.stop() + if (this@VideoPlayerActivity::exoPlayer.isInitialized) { + exoPlayer.stop() + } finish() } }