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

Sébastien Toque git at videolan.org
Sun May 18 21:08:44 CEST 2014


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sun May 18 21:06:31 2014 +0200| [a77f508b914db5ff0a01d68271be976ea43e5629] | 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=a77f508b914db5ff0a01d68271be976ea43e5629
---

 .../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