diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 15:01:32 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-21 15:01:32 -0800 |
commit | 0e89166dfc4647e23b2e8e833fa581a50c5b49b8 (patch) | |
tree | 53b71098657a20b93c4ce8af85343e795146592b /src/github/daneren2005 | |
parent | 7d53ef61b7498a8dd0e5f63bc2e907eb4937b261 (diff) | |
download | dsub-0e89166dfc4647e23b2e8e833fa581a50c5b49b8.tar.gz dsub-0e89166dfc4647e23b2e8e833fa581a50c5b49b8.tar.bz2 dsub-0e89166dfc4647e23b2e8e833fa581a50c5b49b8.zip |
#262 Fix playing status always being true even if paused
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index e944f125..eecdcdeb 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -1247,11 +1247,13 @@ public final class Util { File albumArtFile = FileUtil.getAlbumArtFile(context, song); intent.putExtra("coverart", albumArtFile.getAbsolutePath()); + avrcpIntent.putExtra("playing", true); } else { intent.putExtra("title", ""); intent.putExtra("artist", ""); intent.putExtra("album", ""); intent.putExtra("coverart", ""); + avrcpIntent.putExtra("playing", false); } addTrackInfo(context, song, avrcpIntent); @@ -1297,7 +1299,6 @@ public final class Util { DownloadService downloadService = (DownloadServiceImpl)context; File albumArtFile = FileUtil.getAlbumArtFile(context, song); - intent.putExtra("playing", true); intent.putExtra("track", song.getTitle()); intent.putExtra("artist", song.getArtist()); intent.putExtra("album", song.getAlbum()); @@ -1307,7 +1308,6 @@ public final class Util { intent.putExtra("position", (long) downloadService.getPlayerPosition()); intent.putExtra("coverart", albumArtFile.getAbsolutePath()); } else { - intent.putExtra("playing", false); intent.putExtra("track", ""); intent.putExtra("artist", ""); intent.putExtra("album", ""); |