[Android] Hide video stats with back button if they are displayed
Nicolas Pomepuy
git at videolan.org
Wed Sep 2 09:41:28 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep 1 09:42:43 2020 +0200| [20c39641ce194bedf3504a84be7511f85ab6e785] | committer: Nicolas Pomepuy
Hide video stats with back button if they are displayed
> https://code.videolan.org/videolan/vlc-android/commit/20c39641ce194bedf3504a84be7511f85ab6e785
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 3 +++
1 file changed, 3 insertions(+)
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 0324d0a12..b5b74ba0c 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
@@ -876,6 +876,9 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
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 {
exitOK()
super.onBackPressed()
More information about the Android
mailing list