[Android] Prevent hub from being hidden while setting AB repeat
Nicolas Pomepuy
git at videolan.org
Wed May 27 10:05:35 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed May 27 07:22:01 2020 +0200| [45cabd3a21a62c0e4daa733776fcf0cba3d82a94] | committer: Nicolas Pomepuy
Prevent hub from being hidden while setting AB repeat
Fixes #1331
> https://code.videolan.org/videolan/vlc-android/commit/45cabd3a21a62c0e4daa733776fcf0cba3d82a94
---
.../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 2 ++
1 file changed, 2 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 cb332e7bd..e19e5ca26 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
@@ -2005,6 +2005,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
hudBinding.abRepeatMarkerA.visibility = if (abvalues.start == -1L) View.GONE else View.VISIBLE
hudBinding.abRepeatMarkerB.visibility = if (abvalues.stop == -1L) View.GONE else View.VISIBLE
service.manageAbRepeatStep(hudRightBinding.abRepeatReset, hudRightBinding.abRepeatStop, hudBinding.abRepeatContainer, abRepeatAddMarker)
+ showOverlayTimeout(if (abvalues.start == -1L || abvalues.stop == -1L) OVERLAY_INFINITE else OVERLAY_TIMEOUT)
})
service.playlistManager.abRepeatOn.observe(this, Observer {
hudBinding.abRepeatMarkerGuidelineContainer.visibility = if (it) View.VISIBLE else View.GONE
@@ -2013,6 +2014,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
hudBinding.playerOverlayLength.nextFocusUpId = R.id.ab_repeat_add_marker
hudBinding.playerOverlayTime.nextFocusUpId = R.id.ab_repeat_add_marker
}
+ if (it) showOverlayTimeout(OVERLAY_INFINITE)
service.manageAbRepeatStep(hudRightBinding.abRepeatReset, hudRightBinding.abRepeatStop, hudBinding.abRepeatContainer, abRepeatAddMarker)
})
More information about the Android
mailing list