aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-12-15 18:07:52 -0800
committerScott Jackson <daneren2005@gmail.com>2014-12-15 18:07:52 -0800
commit89b42b0292f9c6058081e53b6e2dd97d84f70400 (patch)
treebd0466534018b00d4e3b0e93bdbcb7b45ac6a3f0
parent98d2d7ad9dcfaa4791fd59e81c4c74faad691ad9 (diff)
downloaddsub-89b42b0292f9c6058081e53b6e2dd97d84f70400.tar.gz
dsub-89b42b0292f9c6058081e53b6e2dd97d84f70400.tar.bz2
dsub-89b42b0292f9c6058081e53b6e2dd97d84f70400.zip
Fix quick bar showing playing with no playlist
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java12
1 files changed, 6 insertions, 6 deletions
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);