[Android] Fix launch from 3rd party app with popup running

Geoffrey Métais git at videolan.org
Mon Oct 9 18:46:31 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct  9 18:45:36 2017 +0200| [a6078d40f33624b8a2a87fb837d5cf76f2a45d2c] | committer: Geoffrey Métais

Fix launch from 3rd party app with popup running

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

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java       | 8 +++++---
 1 file changed, 5 insertions(+), 3 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 75779f12e..62a0e2d7f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -838,11 +838,13 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mSavedTime = -1;
         mPlaybackStarted = true;
 
-        final IVLCVout vlcVout = mService.getVLCVout();
+        IVLCVout vlcVout = mService.getVLCVout();
         if (vlcVout.areViewsAttached()) {
-            if (mService.isPlayingPopup())
+            if (mService.isPlayingPopup()) {
                 mService.stop();
-            vlcVout.detachViews();
+                vlcVout = mService.getVLCVout();
+            } else
+                vlcVout.detachViews();
         }
         if (mPresentation == null) {
             vlcVout.setVideoView(mSurfaceView);



More information about the Android mailing list