From 89b42b0292f9c6058081e53b6e2dd97d84f70400 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 15 Dec 2014 18:07:52 -0800 Subject: Fix quick bar showing playing with no playlist --- .../daneren2005/dsub/activity/SubsonicFragmentActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index 3d1f8aab..74ef4894 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -442,16 +442,16 @@ public class SubsonicFragmentActivity extends SubsonicActivity { currentState = state; } - if(current == null) { + MusicDirectory.Entry song = null; + if(current != null) { + song = current.getSong(); + trackView.setText(song.getTitle()); + artistView.setText(song.getArtist()); + } else { trackView.setText("Title"); artistView.setText("Artist"); - getImageLoader().loadImage(coverArtView, null, false, false); - return; } - MusicDirectory.Entry song = current.getSong(); - trackView.setText(song.getTitle()); - artistView.setText(song.getArtist()); getImageLoader().loadImage(coverArtView, song, false, false); int[] attrs = new int[] {(state == PlayerState.STARTED) ? R.attr.media_button_pause : R.attr.media_button_start}; TypedArray typedArray = this.obtainStyledAttributes(attrs); -- cgit v1.2.3