[Android] Add a ticker with title / artist in the status bar
Ludovic Fauvet
git at videolan.org
Thu Nov 1 16:53:48 CET 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Nov 1 16:52:53 2012 +0100| [8728dc9910353a4d032a63faa3f181f47bef502b] | committer: Ludovic Fauvet
Add a ticker with title / artist in the status bar
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8728dc9910353a4d032a63faa3f181f47bef502b
---
vlc-android/src/org/videolan/vlc/AudioService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 2c9f419..bbb364a 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -423,6 +423,7 @@ public class AudioService extends Service {
.setSmallIcon(R.drawable.icon)
.setLargeIcon(AudioUtil.getCover(this, mCurrentMedia, 64))
.setContentTitle(mCurrentMedia.getTitle())
+ .setTicker(mCurrentMedia.getTitle() + " - " + mCurrentMedia.getArtist())
.setContentText((Util.isJellyBeanOrLater() ? mCurrentMedia.getArtist()
: mCurrentMedia.getArtist() + " - " + mCurrentMedia.getAlbum()))
.setContentInfo(mCurrentMedia.getAlbum())
More information about the Android
mailing list