aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-05-10 15:54:04 -0600
committerdaneren2005 <daneren2005@gmail.com>2013-05-10 15:54:04 -0600
commit7d245799ef712a39cd70aad3791ff3f1bbdbfd04 (patch)
tree6c309ac5e72bd9a7eb2fbe1ae8b244815eaafb9b /subsonic-android
parent51fb8523e13ffbe985cdd827aba29e729ce9aba7 (diff)
downloaddsub-7d245799ef712a39cd70aad3791ff3f1bbdbfd04.tar.gz
dsub-7d245799ef712a39cd70aad3791ff3f1bbdbfd04.tar.bz2
dsub-7d245799ef712a39cd70aad3791ff3f1bbdbfd04.zip
Revert previous commit -> Just always do pause logic
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java7
1 files changed, 2 insertions, 5 deletions
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());