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

Habib Kazemi git at videolan.org
Wed Jan 20 09:54:27 UTC 2021


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

Set abRepeatReset and abRepeatStop visibility to Gone on toggling abRepeat

Fixes #1591

(cherry picked from commit 875589ea6c0f6db21ca9b3e06408c5a820e6a4fa)

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

 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