aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-07-18 17:27:08 -0700
committerScott Jackson <daneren2005@gmail.com>2015-07-18 17:27:08 -0700
commit571baf3c8a618899a53d67a1fb842d572ea25d9e (patch)
treed04c92924f5ff650c148e647b75381542141d4cb /app/src/main/java
parent775e66c3006ff90df86da3b87b08436b441b79e4 (diff)
downloaddsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.tar.gz
dsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.tar.bz2
dsub-571baf3c8a618899a53d67a1fb842d572ea25d9e.zip
Fix empty bottom bar image on first load
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java10
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);
}
}