Probably finally fixed the double notification bug.

This commit is contained in:
Karim Abou Zeid 2015-12-24 21:57:31 +01:00
commit ee1e0d4267
3 changed files with 11 additions and 7 deletions

View file

@ -879,7 +879,11 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
break;
case QUEUE_CHANGED:
saveState();
prepareNext();
if (playingQueue.size() > 0) {
prepareNext();
} else {
playingNotificationHelper.killNotification();
}
break;
}
}