[Android] Don't highlight the last video played

Ludovic Fauvet git at videolan.org
Fri Oct 12 16:49:17 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Oct 12 16:45:31 2012 +0200| [9f388a986946f9cc4ad2212cc24d3bc3d9b0f486] | committer: Ludovic Fauvet

Don't highlight the last video played

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
index 63be673..0c5d7fa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -47,7 +47,6 @@ public class VideoListAdapter extends ArrayAdapter<Media>
     public final static int SORT_BY_LENGTH = 1;
     private int mSortDirection = 1;
     private int mSortBy = SORT_BY_TITLE;
-    private String mLastMRL;
     private boolean mListMode = false;
 
     public VideoListAdapter(Context context) {
@@ -65,7 +64,6 @@ public class VideoListAdapter extends ArrayAdapter<Media>
     }
 
     public void setLastMedia(String lastMRL, HashMap<String, Long> times) {
-        mLastMRL = lastMRL;
         // update times
         for (int i = 0; i < getCount(); ++i) {
             Media media = getItem(i);
@@ -160,9 +158,7 @@ public class VideoListAdapter extends ArrayAdapter<Media>
             holder.thumbnail.setImageBitmap(thumbnail);
         }
 
-        ColorStateList titleColor = v.getResources().getColorStateList(media.getLocation().equals(mLastMRL)
-                ? R.color.list_title_last
-                : R.color.list_title);
+        ColorStateList titleColor = v.getResources().getColorStateList(R.color.list_title);
         holder.title.setTextColor(titleColor);
 
         long lastTime = media.getTime();



More information about the Android mailing list