[Android] Restore Playlist.getTrackscount()

Geoffrey Métais git at videolan.org
Thu Sep 6 16:16:24 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep  6 15:51:28 2018 +0200| [466eacf2337cfdcec44855b0b52bf3a076e67566] | committer: Geoffrey Métais

Restore Playlist.getTrackscount()

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

 medialibrary/src/org/videolan/medialibrary/media/Playlist.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/Playlist.java b/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
index 0fb05e9ad..a214d7cc3 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Playlist.java
@@ -27,8 +27,7 @@ public class Playlist extends MediaLibraryItem {
     }
 
     public int getTracksCount() {
-        Medialibrary ml = Medialibrary.getInstance();
-        return ml.isInitiated() ? nativeGetTracksCount(ml, mId) : 0;
+        return mTracksCount;
     }
 
     @Override



More information about the Android mailing list