[Android] Fix the video player quick actions being displayed when the player is locked
Nicolas Pomepuy
git at videolan.org
Wed Jun 2 09:18:30 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Jun 2 07:34:27 2021 +0200| [4eb9159bed7cc8c99ce007aba92917dc6ab3e02d] | committer: Nicolas Pomepuy
Fix the video player quick actions being displayed when the player is locked
Fixes #2047
> https://code.videolan.org/videolan/vlc-android/commit/4eb9159bed7cc8c99ce007aba92917dc6ab3e02d
---
.../src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
index 38636246f..9a5fdc960 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerOverlayDelegate.kt
@@ -682,10 +682,10 @@ class VideoPlayerOverlayDelegate (private val player: VideoPlayerActivity) {
hudRightBinding.videoSecondaryDisplay.contentDescription = player.resources.getString(if (secondary) R.string.video_remote_disable else R.string.video_remote_enable)
hudRightBinding.playlistToggle.visibility = if (show && player.service?.hasPlaylist() == true) View.VISIBLE else View.GONE
- hudRightBinding.sleepQuickAction.visibility = if (PlayerOptionsDelegate.playerSleepTime.value != null) View.VISIBLE else View.GONE
- hudRightBinding.playbackSpeedQuickAction.visibility = if (player.service?.rate != 1.0F) View.VISIBLE else View.GONE
- hudRightBinding.spuDelayQuickAction.visibility = if (player.service?.spuDelay != 0L) View.VISIBLE else View.GONE
- hudRightBinding.audioDelayQuickAction.visibility = if (player.service?.audioDelay != 0L) View.VISIBLE else View.GONE
+ hudRightBinding.sleepQuickAction.visibility = if (show && PlayerOptionsDelegate.playerSleepTime.value != null) View.VISIBLE else View.GONE
+ hudRightBinding.playbackSpeedQuickAction.visibility = if (show && player.service?.rate != 1.0F) View.VISIBLE else View.GONE
+ hudRightBinding.spuDelayQuickAction.visibility = if (show && player.service?.spuDelay != 0L) View.VISIBLE else View.GONE
+ hudRightBinding.audioDelayQuickAction.visibility = if (show && player.service?.audioDelay != 0L) View.VISIBLE else View.GONE
hudRightBinding.playbackSpeedQuickAction.text = player.service?.rate?.formatRateString()
val format = DateFormat.getTimeInstance(DateFormat.SHORT, Locale.getDefault())
More information about the Android
mailing list