[Android] MediaWrapperList: send event on media added

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


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

MediaWrapperList: send event on media added

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

 vlc-android/src/org/videolan/vlc/media/MediaWrapperList.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/media/MediaWrapperList.java b/vlc-android/src/org/videolan/vlc/media/MediaWrapperList.java
index 41308950f..185ad90ec 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaWrapperList.java
+++ b/vlc-android/src/org/videolan/vlc/media/MediaWrapperList.java
@@ -52,6 +52,7 @@ public class MediaWrapperList {
 
     public synchronized void add(MediaWrapper media) {
         mInternalList.add(media);
+        signalEventListeners(EVENT_ADDED, mInternalList.size()-1, -1, media.getLocation());
         if (media.getType() == MediaWrapper.TYPE_VIDEO)
             ++mVideoCount;
     }



More information about the Android mailing list