[Android] Fix video info not closed when back is pressed on TV
Nicolas Pomepuy
git at videolan.org
Wed Oct 21 09:02:40 CEST 2020
vlc-android | branch: 3.3.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Sep 10 06:12:57 2020 +0200| [df0b585148d6d1c7e8f001d01cc3ac334f3636f3] | committer: Nicolas Pomepuy
Fix video info not closed when back is pressed on TV
(cherry picked from commit 461768739b27057a3056f03c7f53faa70d62e10a)
> https://code.videolan.org/videolan/vlc-android/commit/df0b585148d6d1c7e8f001d01cc3ac334f3636f3
---
.../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 2153bcd63c..e1fff74f06 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
@@ -872,12 +872,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