[Android] Rename tracksCount variable in Album

Geoffrey Métais git at videolan.org
Thu Jul 13 15:29:58 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 13 15:29:33 2017 +0200| [58c112db99ce8da3d1cd728e44f735909a3d56d2] | committer: Geoffrey Métais

Rename tracksCount variable in Album

> https://code.videolan.org/videolan/vlc-android/commit/58c112db99ce8da3d1cd728e44f735909a3d56d2
---

 medialibrary/src/org/videolan/medialibrary/media/Album.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/media/Album.java b/medialibrary/src/org/videolan/medialibrary/media/Album.java
index c0b1e732f..9168338db 100644
--- a/medialibrary/src/org/videolan/medialibrary/media/Album.java
+++ b/medialibrary/src/org/videolan/medialibrary/media/Album.java
@@ -11,7 +11,7 @@ public class Album extends MediaLibraryItem {
     private String artworkMrl;
     private String albumArtist;
     private long albumArtistId;
-    private int nbTracks;
+    private int mTracksCount;
     private int duration;
 
     public Album(long id, String title, int releaseYear, String artworkMrl, String albumArtist, long albumArtistId, int nbTracks, int duration) {
@@ -20,7 +20,7 @@ public class Album extends MediaLibraryItem {
         this.artworkMrl = artworkMrl != null ? VLCUtil.UriFromMrl(artworkMrl).getPath() : null;
         this.albumArtist = albumArtist != null ? albumArtist.trim(): null;
         this.albumArtistId = albumArtistId;
-        this.nbTracks = nbTracks;
+        this.mTracksCount = nbTracks;
         this.duration = duration;
     }
 
@@ -46,8 +46,8 @@ public class Album extends MediaLibraryItem {
         return null;
     }
 
-    public int getNbTracks() {
-        return nbTracks;
+    public int getTracksCount() {
+        return mTracksCount;
     }
 
     public int getDuration() {
@@ -72,7 +72,7 @@ public class Album extends MediaLibraryItem {
         parcel.writeString(artworkMrl);
         parcel.writeString(albumArtist);
         parcel.writeLong(albumArtistId);
-        parcel.writeInt(nbTracks);
+        parcel.writeInt(mTracksCount);
         parcel.writeInt(duration);
     }
 
@@ -93,7 +93,7 @@ public class Album extends MediaLibraryItem {
         this.artworkMrl = in.readString();
         this.albumArtist = in.readString();
         this.albumArtistId = in.readLong();
-        this.nbTracks = in.readInt();
+        this.mTracksCount = in.readInt();
         this.duration = in.readInt();
     }
 }



More information about the Android mailing list