From 4e16b1d44ae501dffa50d5224111745aa82d89b7 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 4 Sep 2012 20:08:55 -0700 Subject: Revert, cause other issues fixing #15 --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 9ccb67a4..b7f6813e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -692,7 +692,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { } boolean show = this.playerState == PAUSED && playerState == PlayerState.STARTED; - boolean hide = this.playerState == STARTED && (playerState == PlayerState.PAUSED || playerState == PlayerState.IDLE); + boolean hide = this.playerState == STARTED && playerState == PlayerState.PAUSED; Util.broadcastPlaybackStatusChange(this, playerState); this.playerState = playerState; @@ -702,8 +702,10 @@ public class DownloadServiceImpl extends Service implements DownloadService { if (show) { Util.showPlayingNotification(this, this, handler, currentPlaying.getSong()); + Log.d(TAG, "Showing"); } else if (hide) { Util.hidePlayingNotification(this, this, handler); + Log.d(TAG, "Hiding"); } if (playerState == STARTED) { -- cgit v1.2.3