[Android] Use new 'unknown' icon

Geoffrey Métais git at videolan.org
Thu Feb 19 19:04:40 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 19 19:04:25 2015 +0100| [550aa758751e9f173fe2468cba416cd8bd7041df] | committer: Geoffrey Métais

Use new 'unknown' icon

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

 vlc-android/tv/src/org/videolan/vlc/gui/tv/CardPresenter.java |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/CardPresenter.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/CardPresenter.java
index 8fff175..c1031e2 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -86,8 +86,10 @@ public class CardPresenter extends Presenter {
             } else if (MediaWrapper.getType() == MediaWrapper.TYPE_DIR) {
                 mCardView.getMainImageView().setScaleType(ImageView.ScaleType.CENTER);
                 picture = BitmapFactory.decodeResource(mRes, R.drawable.ic_menu_network_big);
-            } else
-                mCardView.getMainImageView().setScaleType(ImageView.ScaleType.CENTER_CROP);
+            } else {
+                mCardView.getMainImageView().setScaleType(ImageView.ScaleType.CENTER);
+                picture = BitmapFactory.decodeResource(mRes, R.drawable.ic_browser_unknown_big_normal);
+            }
             if (picture != null && picture.getByteCount() > 4)
                 mCardView.setMainImage(new BitmapDrawable(mRes, picture));
             else



More information about the Android mailing list