[Android] Video: error dialog only for last playlist item

Geoffrey Métais git at videolan.org
Wed Jan 31 10:31:53 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 31 10:27:25 2018 +0100| [c4e0097668771b4fe6cafb40da38cf3058a163cc] | committer: Geoffrey Métais

Video: error dialog only for last playlist item

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

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

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 0dca077fa..4f6a28429 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1764,8 +1764,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     }
 
     private void encounteredError() {
-        if (isFinishing())
-            return;
+        if (isFinishing() || mService.hasNext()) return;
         /* Encountered Error, exit player with a message */
         mAlertDialog = new AlertDialog.Builder(VideoPlayerActivity.this)
                 .setOnCancelListener(new DialogInterface.OnCancelListener() {



More information about the Android mailing list