[Android] Fix cover imageview reference

Geoffrey Métais git at videolan.org
Fri May 6 10:10:53 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May  6 09:12:41 2016 +0200| [618d6ac025322f687c0cdb66da1377637c625e38] | committer: Geoffrey Métais

Fix cover imageview reference

> https://code.videolan.org/videolan/vlc-android/commit/618d6ac025322f687c0cdb66da1377637c625e38
---

 .../src/org/videolan/vlc/gui/helpers/SearchSuggestionsAdapter.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/SearchSuggestionsAdapter.java b/vlc-android/src/org/videolan/vlc/gui/helpers/SearchSuggestionsAdapter.java
index fc00485..0328902 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/SearchSuggestionsAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/SearchSuggestionsAdapter.java
@@ -79,7 +79,7 @@ public class SearchSuggestionsAdapter extends CursorAdapter {
             view.findViewById(R.id.subtitle).setVisibility(View.GONE);
 
         Bitmap artwork;
-        ImageView coverView = (ImageView) view.findViewById(R.id.cover);
+        ImageView coverView = (ImageView) view.findViewById(R.id.media_cover);
         if (mw.getType() == MediaWrapper.TYPE_AUDIO)
             artwork = AudioUtil.getCover(context, mw, context.getResources().getDimensionPixelSize(R.dimen.audio_browser_item_size));
         else if (mw.getType() == MediaWrapper.TYPE_VIDEO)



More information about the Android mailing list