Don't show notification when there is no current track. For example immediately after clearing the queue. Fixes kabouzeid/phonograph-issue-tracker#5
This commit is contained in:
parent
f4ac570eea
commit
9833afd594
1 changed files with 4 additions and 0 deletions
|
|
@ -56,6 +56,10 @@ public class PlayingNotificationHelper {
|
||||||
stopped = false;
|
stopped = false;
|
||||||
|
|
||||||
final Song song = service.getCurrentSong();
|
final Song song = service.getCurrentSong();
|
||||||
|
if (song.id == -1) {
|
||||||
|
killNotification();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final boolean isPlaying = service.isPlaying();
|
final boolean isPlaying = service.isPlaying();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue