diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-11-06 21:06:23 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-11-06 21:06:23 -0800 |
commit | 92d986a10e1e4e0579a0552bb6d4c5be883128fc (patch) | |
tree | 0f9a537fb953186656fdc925d2d8625af1b06364 /subsonic-android | |
parent | f1db9e3bd6610e4897a730951e55d07450d0ada1 (diff) | |
download | dsub-92d986a10e1e4e0579a0552bb6d4c5be883128fc.tar.gz dsub-92d986a10e1e4e0579a0552bb6d4c5be883128fc.tar.bz2 dsub-92d986a10e1e4e0579a0552bb6d4c5be883128fc.zip |
Don't update metadata with null song, just send done signal #53
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 496bd757..a9529b36 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -460,8 +460,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { Util.hidePlayingNotification(this, this, handler); } - MusicDirectory.Entry currentSong = (currentPlaying == null) ? null: currentPlaying.getSong(); - mRemoteControl.updateMetadata(this, currentSong); + if(currentPlaying != null) { + mRemoteControl.updateMetadata(this, currentPlaying.getSong()); + } } |