[Android] albums/songs: use constants instead of hardcoded values

unknown git at videolan.org
Sun May 18 21:01:08 CEST 2014


vlc-ports/android | branch: master | unknown <ZT5032 at GA002232D.user.par.gaselys.com> | Fri May 16 16:29:53 2014 +0200| [a3e0df03f6546908ac44a94c39ca8705e9b253bb] | committer: Sébastien Toque

albums/songs: use constants instead of hardcoded values

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a3e0df03f6546908ac44a94c39ca8705e9b253bb
---

 .../src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java    |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index 8ab1600..dc00a6d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -291,9 +291,9 @@ public class AudioBrowserListAdapter extends BaseAdapter {
 
     @Override
     public int getItemViewType(int position) {
-        int viewType = 0;
+        int viewType = VIEW_MEDIA;
         if (mItems.get(position).mIsSeparator)
-            viewType = 1;
+            viewType = VIEW_SEPARATOR;
         return viewType;
     }
 



More information about the Android mailing list