[Android] Fix width value for notification image

Geoffrey Métais git at videolan.org
Mon Oct 9 17:31:39 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct  9 17:31:11 2017 +0200| [9a7aa2ca76f29bad07d4e1445690dcb369837ee9] | committer: Geoffrey Métais

Fix width value for notification image

> https://code.videolan.org/videolan/vlc-android/commit/9a7aa2ca76f29bad07d4e1445690dcb369837ee9
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index c861f81fc..cad881f21 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -119,8 +119,6 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 import java.util.concurrent.atomic.AtomicBoolean;
 
-import static android.R.attr.width;
-
 public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVout.Callback {
 
     private static final String TAG = "VLC/PlaybackService";
@@ -959,7 +957,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
                             album = metaData == null ? mw.getAlbum() : metaData.getString(MediaMetadataCompat.METADATA_KEY_ALBUM);
                             cover = coverOnLockscreen && metaData != null
                                     ? metaData.getBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART)
-                                    : AudioUtil.readCoverBitmap(Uri.decode(mw.getArtworkMrl()), width);
+                                    : AudioUtil.readCoverBitmap(Uri.decode(mw.getArtworkMrl()), 256);
                         }
                         if (cover == null || cover.isRecycled())
                             cover = BitmapFactory.decodeResource(ctx.getResources(), R.drawable.ic_no_media);



More information about the Android mailing list