Cleaned up and rewrote big parts of the MusicService. Added gapless playback option in settings.
This commit is contained in:
parent
1908d1fe78
commit
3bdecbebe4
10 changed files with 471 additions and 271 deletions
|
|
@ -36,11 +36,10 @@ public class MusicPlayerWidget extends AppWidgetProvider {
|
|||
}
|
||||
|
||||
public static void updateWidgets(final Context context, final Song song, boolean isPlaying) {
|
||||
if (song.id == -1) return;
|
||||
widgetLayout = new RemoteViews(context.getPackageName(), R.layout.music_player_widget);
|
||||
linkButtons(context, widgetLayout);
|
||||
if (song.id != -1) {
|
||||
widgetLayout.setTextViewText(R.id.song_title, song.title);
|
||||
}
|
||||
widgetLayout.setTextViewText(R.id.song_title, song.title);
|
||||
updateWidgetsPlayState(context, isPlaying);
|
||||
loadAlbumArt(context, song);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue