[Android] Add setTitle to MediaLibraryItem

Geoffrey Métais git at videolan.org
Thu Jan 5 10:16:27 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan  4 15:55:53 2017 +0100| [0ae9e6892c1eb0ca2d873fcc6ea568b835f1313e] | committer: Geoffrey Métais

Add setTitle to MediaLibraryItem

> https://code.videolan.org/videolan/vlc-android/commit/0ae9e6892c1eb0ca2d873fcc6ea568b835f1313e
---

 .../src/org/videolan/medialibrary/media/MediaLibraryItem.java      | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/MediaLibraryItem.java b/medialibrary/src/org/videolan/medialibrary/media/MediaLibraryItem.java
index f8d8f23..f3a2e3b 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/MediaLibraryItem.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/MediaLibraryItem.java
@@ -25,7 +25,8 @@ public abstract class MediaLibraryItem implements Parcelable {
     public abstract int getItemType();
 
     long mId;
-    protected String mTitle, mDescription;
+    protected String mTitle;
+    String mDescription;
     int mFlags;
 
     protected MediaLibraryItem() {}
@@ -43,6 +44,10 @@ public abstract class MediaLibraryItem implements Parcelable {
         return mTitle;
     }
 
+    public void setTitle(String title) {
+        mTitle = title;
+    }
+
     public String getArtworkMrl() {
         return null;
     }



More information about the Android mailing list