diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-12-02 13:24:55 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-12-02 13:24:55 -0800 |
commit | 685a971c264e4dad14d8053d8bf2b9021ba0b84f (patch) | |
tree | df9c6423b04dcf254d9c481ab1c40f73f9218d6a /src | |
parent | 283c65854e0e333dbcbd6f8dd271a8cfb3064c87 (diff) | |
download | dsub-685a971c264e4dad14d8053d8bf2b9021ba0b84f.tar.gz dsub-685a971c264e4dad14d8053d8bf2b9021ba0b84f.tar.bz2 dsub-685a971c264e4dad14d8053d8bf2b9021ba0b84f.zip |
#200 Close notification when switching remote state
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index e379291f..d15ab7a5 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1078,6 +1078,13 @@ public class DownloadServiceImpl extends Service implements DownloadService { currentDownloading.cancelDownload(); } } + + SharedPreferences prefs = Util.getPreferences(this); + if(currentPlaying != null && prefs.getBoolean(Constants.PREFERENCES_KEY_PERSISTENT_NOTIFICATION, false)) { + Util.showPlayingNotification(this, this, handler, currentPlaying.getSong()); + } else { + Util.hidePlayingNotification(this, this, handler); + } } @Override |