[Android] Fix issues when back is pressed

Nicolas Pomepuy git at videolan.org
Tue Nov 15 09:29:38 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Nov 15 09:22:05 2022 +0100| [cace460dcca5a192a3e06d19f4e5513d33c6a60d] | committer: Nicolas Pomepuy

Fix issues when back is pressed

> https://code.videolan.org/videolan/vlc-android/commit/cace460dcca5a192a3e06d19f4e5513d33c6a60d
---

 .../java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt   | 1 +
 .../vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt | 1 +
 2 files changed, 2 insertions(+)

diff --git a/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt b/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
index 63ae0efebc..0cb8d47353 100644
--- a/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/audioplayer/AudioPlayerActivity.kt
@@ -140,6 +140,7 @@ class AudioPlayerActivity : BaseTvActivity(),KeycodeListener  {
                     bookmarkListDelegate.hide()
                     return
                 }
+                finish()
             }
         })
     }
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
index 19bfe0f4a0..74f4826ee2 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
@@ -170,6 +170,7 @@ open class AudioPlayerContainerActivity : BaseActivity(), KeycodeListener {
         onBackPressedDispatcher.addCallback(this, object : OnBackPressedCallback(true) {
             override fun handleOnBackPressed() {
                 if (slideDownAudioPlayer()) return
+                finish()
             }
         })
     }



More information about the Android mailing list