[Android] Show the current cover in the notification area

Ludovic Fauvet git at videolan.org
Tue Oct 9 00:35:55 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct  9 00:34:28 2012 +0200| [2c10acdd15d2639e76dec373eaa7424e635efebf] | committer: Ludovic Fauvet

Show the current cover in the notification area

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

 vlc-android/src/org/videolan/vlc/AudioService.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 6c48dc0..c14f3e2 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -457,7 +457,7 @@ public class AudioService extends Service {
         // add notification to status bar
         NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
             .setSmallIcon(R.drawable.icon)
-            .setLargeIcon(mCurrentMedia.getPicture())
+            .setLargeIcon(AudioUtil.getCover(this, mCurrentMedia, 64))
             .setContentTitle(mCurrentMedia.getTitle())
             .setContentText((Util.isJellyBeanOrLater() ? mCurrentMedia.getArtist()
                     : mCurrentMedia.getArtist() + " - " + mCurrentMedia.getAlbum()))



More information about the Android mailing list