Commit 875589ea authored by Habib Kazemi's avatar Habib Kazemi Committed by Nicolas Pomepuy

Set abRepeatReset and abRepeatStop visibility to Gone on toggling abRepeat

Fixes #1591
parent f47d9a5c
Pipeline #54440 passed with stage
in 18 minutes and 45 seconds
...@@ -1483,7 +1483,11 @@ private object UpdateMeta : CbAction() ...@@ -1483,7 +1483,11 @@ private object UpdateMeta : CbAction()
fun PlaybackService.manageAbRepeatStep(abRepeatReset: View, abRepeatStop: View, abRepeatContainer: View, abRepeatAddMarker: TextView) { fun PlaybackService.manageAbRepeatStep(abRepeatReset: View, abRepeatStop: View, abRepeatContainer: View, abRepeatAddMarker: TextView) {
when { when {
playlistManager.abRepeatOn.value != true -> abRepeatContainer.visibility = View.GONE playlistManager.abRepeatOn.value != true -> {
abRepeatReset.visibility = View.GONE
abRepeatStop.visibility = View.GONE
abRepeatContainer.visibility = View.GONE
}
playlistManager.abRepeat.value?.start != -1L && playlistManager.abRepeat.value?.stop != -1L -> { playlistManager.abRepeat.value?.start != -1L && playlistManager.abRepeat.value?.stop != -1L -> {
abRepeatReset.visibility = View.VISIBLE abRepeatReset.visibility = View.VISIBLE
abRepeatStop.visibility = View.VISIBLE abRepeatStop.visibility = View.VISIBLE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment