[Android] Set callback when reloading last video playlist

Geoffrey Métais git at videolan.org
Mon Feb 22 14:51:48 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 22 14:49:59 2016 +0100| [b3102a7a1ccbbfcd658c9aecf52be42cf2efc525] | committer: Geoffrey Métais

Set callback when reloading last video playlist

Fixes switch between external and device display

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

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

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 aa0b02d..87b380e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2832,8 +2832,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             // Get the title
             if (itemTitle == null)
                 title = mUri.getLastPathSegment();
-        } else
+        } else {
+            mService.addCallback(this);
             mService.loadLastPlaylist(PlaybackService.TYPE_VIDEO);
+        }
         if (itemTitle != null)
             title = itemTitle;
         mTitle.setText(title);



More information about the Android mailing list