[Android] Return empty history if medialibrary is not up
Geoffrey Métais
git at videolan.org
Wed Nov 23 15:20:35 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 22 18:03:49 2016 +0100| [2a0259cc81a1ecd0ef80df1a356a0cb26f1edbfc] | committer: Geoffrey Métais
Return empty history if medialibrary is not up
> https://code.videolan.org/videolan/vlc-android/commit/2a0259cc81a1ecd0ef80df1a356a0cb26f1edbfc
---
medialibrary/src/org/videolan/medialibrary/Medialibrary.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
index a26b47e..eba54d7 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -199,7 +199,7 @@ public class Medialibrary {
}
public MediaWrapper[] lastMediaPlayed() {
- return nativeLastMediaPlayed();
+ return mIsInitiated ? nativeLastMediaPlayed() : EMPTY_COLLECTION;
}
public MediaWrapper getMedia(long id) {
More information about the Android
mailing list