[Android] DatabaseManager: describe items
Ludovic Fauvet
git at videolan.org
Fri Oct 12 11:52:09 CEST 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Oct 12 11:49:57 2012 +0200| [c05f491c8ab3a84bfff0d690d97d2532d0940069] | committer: Ludovic Fauvet
DatabaseManager: describe items
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c05f491c8ab3a84bfff0d690d97d2532d0940069
---
.../src/org/videolan/vlc/DatabaseManager.java | 22 ++++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/DatabaseManager.java b/vlc-android/src/org/videolan/vlc/DatabaseManager.java
index 7003a8e..e3442be 100644
--- a/vlc-android/src/org/videolan/vlc/DatabaseManager.java
+++ b/vlc-android/src/org/videolan/vlc/DatabaseManager.java
@@ -332,17 +332,17 @@ public class DatabaseManager {
}
String location = cursor.getString(11);
Media media = new Media(context, location,
- cursor.getLong(0),
- cursor.getLong(1),
- cursor.getInt(2),
- picture,
- cursor.getString(4),
- cursor.getString(5),
- cursor.getString(6),
- cursor.getString(7),
- cursor.getInt(8),
- cursor.getInt(9),
- cursor.getString(10));
+ cursor.getLong(0), // MEDIA_PICTURE
+ cursor.getLong(1), // MEDIA_LENGTH
+ cursor.getInt(2), // MEDIA_TYPE
+ picture, // MEDIA_PICTURE
+ cursor.getString(4), // MEDIA_TITLE
+ cursor.getString(5), // MEDIA_ARTIST
+ cursor.getString(6), // MEDIA_GENRE
+ cursor.getString(7), // MEDIA_ALBUM
+ cursor.getInt(8), // MEDIA_WIDTH
+ cursor.getInt(9), // MEDIA_HEIGHT
+ cursor.getString(10)); // MEDIA_ARTWORKURL
media.setPictureParsed(blob != null);
medias.put(media.getLocation(), media);
More information about the Android
mailing list