[Android] Restore the album name in the notifications for pre-4.1

Ludovic Fauvet git at videolan.org
Sat Sep 29 16:35:13 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Sep 29 16:31:47 2012 +0200| [f26994601e27ca38fc1d25724cab5ddafe2b535f] | committer: Ludovic Fauvet

Restore the album name in the notifications for pre-4.1

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

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

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index cfd4dd6..83857e0 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -459,7 +459,8 @@ public class AudioService extends Service {
             .setSmallIcon(R.drawable.icon)
             .setLargeIcon(mCurrentMedia.getPicture())
             .setContentTitle(mCurrentMedia.getTitle())
-            .setContentText(mCurrentMedia.getArtist())
+            .setContentText((Util.isJellyBeanOrLater() ? mCurrentMedia.getArtist()
+                    : mCurrentMedia.getArtist() + " - " + mCurrentMedia.getAlbum()))
             .setContentInfo(mCurrentMedia.getAlbum())
             .setAutoCancel(false)
             .setOngoing(true);



More information about the Android mailing list