forked from len0rd/rockbox
Android: Show cover art in the widget (including option to hide it).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29437 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
952d82b7bd
commit
883ff8507e
9 changed files with 49 additions and 9 deletions
|
@ -11,7 +11,6 @@ import android.app.NotificationManager;
|
|||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.util.Log;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
|
@ -83,7 +82,7 @@ public class RunForegroundManager
|
|||
api.stopForeground();
|
||||
}
|
||||
|
||||
public void updateNotification(String title, String artist, String album)
|
||||
public void updateNotification(String title, String artist, String album, String albumart)
|
||||
{
|
||||
RemoteViews views = mNotification.contentView;
|
||||
views.setTextViewText(R.id.title, title);
|
||||
|
@ -98,6 +97,7 @@ public class RunForegroundManager
|
|||
widgetUpdate.putExtra("title", title);
|
||||
widgetUpdate.putExtra("artist", artist);
|
||||
widgetUpdate.putExtra("album", album);
|
||||
widgetUpdate.putExtra("albumart", albumart);
|
||||
mCurrentService.sendBroadcast(widgetUpdate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue