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:
Karim Abou Zeid 2016-05-31 11:44:25 +02:00
commit 9833afd594

View file

@ -56,6 +56,10 @@ public class PlayingNotificationHelper {
stopped = false;
final Song song = service.getCurrentSong();
if (song.id == -1) {
killNotification();
return;
}
final boolean isPlaying = service.isPlaying();