From 7d245799ef712a39cd70aad3791ff3f1bbdbfd04 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Fri, 10 May 2013 15:54:04 -0600 Subject: Revert previous commit -> Just always do pause logic --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'subsonic-android/src/github/daneren2005') diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 78b836aa..66339445 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -39,7 +39,6 @@ import github.daneren2005.dsub.util.ShufflePlayBuffer; import github.daneren2005.dsub.util.SimpleServiceBinder; import github.daneren2005.dsub.util.Util; import github.daneren2005.dsub.util.compat.RemoteControlClientHelper; -import github.daneren2005.dsub.provider.DSubWidgetProvider; import java.io.File; import java.util.ArrayList; @@ -837,7 +836,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { } boolean show = playerState == PlayerState.STARTED; - boolean pause = this.playerState == STARTED && playerState == PlayerState.PAUSED; + boolean pause = playerState == PlayerState.PAUSED; boolean hide = playerState == PlayerState.STOPPED; Util.broadcastPlaybackStatusChange(this, playerState); @@ -856,9 +855,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { } else { Util.hidePlayingNotification(this, this, handler); } - } else if(playerState == PlayerState.PAUSED) { - DSubWidgetProvider.getInstance().notifyChange(context, downloadService, true); - } else if(hide) { + } else if(hide) { Util.hidePlayingNotification(this, this, handler); } mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState()); -- cgit v1.2.3