diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-07-18 17:27:08 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-07-18 17:27:08 -0700 |
commit | 571baf3c8a618899a53d67a1fb842d572ea25d9e (patch) | |
tree | d04c92924f5ff650c148e647b75381542141d4cb /app | |
parent | 775e66c3006ff90df86da3b87b08436b441b79e4 (diff) | |
download | dsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.tar.gz dsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.tar.bz2 dsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.zip |
Fix empty bottom bar image on first load
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java | 10 |
1 files changed, 2 insertions, 8 deletions
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<DownloadFile> songs, DownloadFile currentPlaying, int currentPlayingIndex) { - if(this.currentPlaying != currentPlaying) { + if(this.currentPlaying != currentPlaying || currentPlaying == null) { onSongChanged(currentPlaying, currentPlayingIndex); } } |