[Android] Ignore 'repeat' state with a single video

Geoffrey Métais git at videolan.org
Thu Nov 24 18:01:37 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 24 18:00:52 2016 +0100| [3f695e42b5784552637f0c63c150d9858109014d] | committer: Geoffrey Métais

Ignore 'repeat' state with a single video

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index c797ca4..2467818 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1721,6 +1721,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                 }
             });
         }
+        //Ignore repeat 
+        if (mService.getRepeatType() == PlaybackService.REPEAT_ALL && mService.getMediaListSize() == 1)
+            exitOK();
     }
 
     private void encounteredError() {



More information about the Android mailing list