diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-05-10 15:49:24 -0600 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-05-10 15:49:24 -0600 |
commit | 51fb8523e13ffbe985cdd827aba29e729ce9aba7 (patch) | |
tree | aa2a1f9719139a8314950c0cdd79d1a47135574b /subsonic-android/src | |
parent | 23d0e8b7b74bc80ce7e6d57a74ab915285324b52 (diff) | |
download | dsub-51fb8523e13ffbe985cdd827aba29e729ce9aba7.tar.gz dsub-51fb8523e13ffbe985cdd827aba29e729ce9aba7.tar.bz2 dsub-51fb8523e13ffbe985cdd827aba29e729ce9aba7.zip |
Update widget when going Prepared -> Paused
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 060fa35d..78b836aa 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -39,6 +39,7 @@ 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; @@ -855,7 +856,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { } else { Util.hidePlayingNotification(this, this, handler); } - } else if(hide) { + } else if(playerState == PlayerState.PAUSED) { + DSubWidgetProvider.getInstance().notifyChange(context, downloadService, true); + } else if(hide) { Util.hidePlayingNotification(this, this, handler); } mRemoteControl.setPlaybackState(playerState.getRemoteControlClientPlayState()); |