[Android] Fix playlist clear on video player resumed

Geoffrey Métais git at videolan.org
Wed Feb 14 17:36:23 CET 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 12 15:48:08 2018 +0100| [21ca2095611a5dd74b41400385ac24c347cec0e0] | committer: Geoffrey Métais

Fix playlist clear on video player resumed

(cherry picked from commit 92a9efb3bfc595988fe8633d5caaf55c12a34dc9)

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
 1 file changed, 2 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 d8ba6dbb3..81169f275 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -701,6 +701,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
         if (mService != null) mService.removeCallback(this);
         mHelper.onStop();
+        // Clear Intent to restore playlist on activity restart
+        setIntent(new Intent());
     }
 
     private void restoreBrightness() {



More information about the Android mailing list