[Android] Fix video info not closed when back is pressed on TV
Nicolas Pomepuy
git at videolan.org
Mon Sep 14 08:06:34 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Sep 10 06:12:57 2020 +0200| [461768739b27057a3056f03c7f53faa70d62e10a] | committer: Nicolas Pomepuy
Fix video info not closed when back is pressed on TV
> https://code.videolan.org/videolan/vlc-android/commit/461768739b27057a3056f03c7f53faa70d62e10a
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index e37ad413e..0770e6005 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -873,12 +873,12 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
overlayDelegate.togglePlaylist()
} else if (isPlaybackSettingActive) {
delayDelegate.endPlaybackSetting()
- } else if (isTv && isShowing && !isLocked) {
- overlayDelegate.hideOverlay(true)
} else if (isShowing && service?.playlistManager?.videoStatsOn?.value == true) {
//hides video stats if they are displayed
service?.playlistManager?.videoStatsOn?.postValue(false)
- } else {
+ } else if (isTv && isShowing && !isLocked) {
+ overlayDelegate.hideOverlay(true)
+ } else {
exitOK()
super.onBackPressed()
}
More information about the Android
mailing list