[Android] Set abRepeatReset and abRepeatStop visibility to Gone on toggling abRepeat

Habib Kazemi git at videolan.org
Mon Jan 4 12:27:52 UTC 2021


vlc-android | branch: master | Habib Kazemi <kazemihabib1996 at gmail.com> | Thu Dec 24 19:19:28 2020 +0330| [875589ea6c0f6db21ca9b3e06408c5a820e6a4fa] | committer: Nicolas Pomepuy

Set abRepeatReset and abRepeatStop visibility to Gone on toggling abRepeat

Fixes #1591

> https://code.videolan.org/videolan/vlc-android/commit/875589ea6c0f6db21ca9b3e06408c5a820e6a4fa
---

 application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 2ea1522b0..e1cb76d29 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1483,7 +1483,11 @@ private object UpdateMeta : CbAction()
 
 fun PlaybackService.manageAbRepeatStep(abRepeatReset: View, abRepeatStop: View, abRepeatContainer: View, abRepeatAddMarker: TextView) {
     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 -> {
             abRepeatReset.visibility = View.VISIBLE
             abRepeatStop.visibility = View.VISIBLE



More information about the Android mailing list