[Android] TV: proper icon for video items
Geoffrey Métais
git at videolan.org
Mon Feb 27 17:47:55 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 27 17:18:39 2017 +0100| [9e92b94e5736af019f9bb1cdcee36432af6e1ef0] | committer: Geoffrey Métais
TV: proper icon for video items
> https://code.videolan.org/videolan/vlc-android/commit/9e92b94e5736af019f9bb1cdcee36432af6e1ef0
---
vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
index 734c792..7306eef 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -258,7 +258,10 @@ public class CardPresenter extends Presenter {
resId = R.drawable.ic_genre_big;
break;
case MediaLibraryItem.TYPE_MEDIA:
- resId = R.drawable.ic_song_big;
+ if (((MediaWrapper)mediaLibraryItem).getType() == MediaWrapper.TYPE_VIDEO)
+ resId = R.drawable.ic_browser_video_big_normal;
+ else
+ resId = R.drawable.ic_song_big;
break;
default:
resId = R.drawable.ic_browser_unknown_big_normal;
More information about the Android
mailing list