From 571baf3c8a618899a53d67a1fb842d572ea25d9e Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 18 Jul 2015 17:27:08 -0700 Subject: Fix empty bottom bar image on first load --- .../daneren2005/dsub/activity/SubsonicFragmentActivity.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index bb54f3cc..d0e6d348 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -825,13 +825,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo @Override public void onSongChanged(DownloadFile currentPlaying, int currentPlayingIndex) { - DownloadService downloadService = getDownloadService(); - PlayerState state = downloadService.getPlayerState(); - if(currentPlaying == this.currentPlaying && state == currentState) { - return; - } else { - this.currentPlaying = currentPlaying; - } + this.currentPlaying = currentPlaying; MusicDirectory.Entry song = null; if (currentPlaying != null) { @@ -857,7 +851,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo @Override public void onSongsChanged(List songs, DownloadFile currentPlaying, int currentPlayingIndex) { - if(this.currentPlaying != currentPlaying) { + if(this.currentPlaying != currentPlaying || currentPlaying == null) { onSongChanged(currentPlaying, currentPlayingIndex); } } -- cgit v1.2.3