[Android] Add the release dat to reflect API change
Nicolas Pomepuy
git at videolan.org
Tue Dec 17 17:52:06 CET 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Nov 28 10:00:46 2019 +0100| [77b139a47be3dacbdb1a9ab4ece6079a90a26588] | committer: Geoffrey Métais
Add the release dat to reflect API change
> https://code.videolan.org/videolan/vlc-android/commit/77b139a47be3dacbdb1a9ab4ece6079a90a26588
---
.../src/org/videolan/medialibrary/stubs/StubDataSource.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/medialibrary/src/org/videolan/medialibrary/stubs/StubDataSource.java b/medialibrary/src/org/videolan/medialibrary/stubs/StubDataSource.java
index bd3d79a32..c1d2c3be9 100644
--- a/medialibrary/src/org/videolan/medialibrary/stubs/StubDataSource.java
+++ b/medialibrary/src/org/videolan/medialibrary/stubs/StubDataSource.java
@@ -325,7 +325,8 @@ public class StubDataSource {
0,
jsonObject.getLong("last_modified"),
0L,
- true
+ true,
+ jsonObject.getInt("release_date")
);
if (type == AbstractMediaWrapper.TYPE_VIDEO) {
addVideo(media);
@@ -480,7 +481,8 @@ public class StubDataSource {
0,
media.getLastModified(),
0L,
- true
+ true,
+ releaseYear
);
mAudioMediaWrappers.add(newMedia);
}
More information about the Android
mailing list